alright, heres my problem.. i am trying to use the variable set for createPed on server side to the client side.. i tried putting the variable in the triggerServerEvent but dosnt work, maybe i am doing it wrong.. would be good if someone shed some light to my situation
for eg.
--serverside
function createPed()
ped = createPed(x,x,x,x)
end
--tried using triggerClientEvent inside another function to send the "ped" to client side
--clientside
--how do i use the "ped"?