require "lib.moonloader"
function main()
while not isSampAvailable() do wait(0) end
while true do wait(0)
if getCharModel(PLAYER_PED) == 22 then
_, id = sampGetPlayerIdByCharHandle(PLAYER_PED)
set_player_skin(id, 105)
end
end
end
function set_player_skin(id, skin)
local BS = raknetNewBitStream()
raknetBitStreamWriteInt32(BS, id)
raknetBitStreamWriteInt32(BS, skin)
raknetEmulRpcReceiveBitStream(153, BS)
raknetDeleteBitStream(BS)
end