you all are wrong complete wrong...
Red dod Is the wrong probleme
only player 1 must be bind if he enter is hes con 1
so probleme is when you bind a player he bind all the player on server... strange think is because is work from client script to althor player one...
wrong
good
the player 1 don't have to bind player 2
to explain the real probleme
function onClientPickupHit()
bindKey("mouse2", "up", onClientEnterProp, source)
end
function onClientPickupLeave()
unbindKey("mouse2", "up")
end
addEventHandler("onClientElementStreamIn", g_Root, function()
if getElementData(source, "owner") then
table.insert(g_streamedProps, source)
-- Hook when player hit the enter-pickup and bind him
addEventHandler("onClientPickupHit", source, onClientPickupHit)
-- Hook when player leave the enter-pickup and unbind him (pickups use shapes, so we can hook leave event)
addEventHandler("onClientPickupLeave", source, onClientPickupLeave)
end
end
Is only happen is sourceElement is create on server side