local ffi = require('ffi');
--[[
bool CPopulation::IsMale(int modelIndex) {
return ((bool(__cdecl *)(int))0x611470)(modelIndex);
}
]]
local CPopulation__IsMale = ffi.cast('bool(__cdecl *)(int)', 0x611470);
local function isModelMale(modelId)
return CPopulation__IsMale(modelId);
end
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('ismale', function(arg)
local model = tonumber(arg);
if (not model) then
return sampAddChatMessage('Долбаебина ебаная, айди введи', -1);
end
sampAddChatMessage(('У скина с ID %d есть %s'):format(model, isModelMale(model) and 'яйца' or 'вагина'), -1);
end);
wait(-1);
end