yes i know, but i can trigger the moveObject Function to server. For example:
Client:
function onDozerCollision(hit,force,bodyPart,colX,colY,colZ,normX,normY,normZ,hitForce,model)
if getElementModel(hit) == 1598 then
local x,y,z = getElementPosition(hit)
triggerServerEvent("moveBall_S",getLocalPlayer(),hit,x,y,t)
end
end
addEventHandler("onClientVehicleCollision", getRootElement(),onDozerCollision)
Server:
function moveBall_S_func(ball,x,y,z)
moveObject(ball,5000,x,y,z,0,0,0,"OutQuad")
end
addEvent("moveBall_S",true)
addEventHandler("moveBall_S",getRootElement(),moveBall_S_func)
But i´ve problems with the calculation of the movement direction.
Thanks for your help!