وش الـخـطأ *
addEventHandler("onPlayerTarget",root,function()
bindKey (source,"j","down",
end
function()
local rx,ry,rz,ax,ay,az,px,py,pz = getElementPosition(source)
if getDistanceBetweenPoints3D(ax,ay,az,px,py,pz) <= 4 then
local wep = getPedWeapon(.....)
if ( wep ) then
nammo = getPedTotalAmmo(.....)
takeWeapon(.....)
giveWeapon(.....)
end
end
end
)