Ahmed Ly Posted March 29, 2016 Share Posted March 29, 2016 --Server addEventHandler("onPlayerTarget",root, function () if getPlayerSerial(source) == "" then for _,value in ipairs ( getElementsByType ( "player" ) ) do local x,y,z = getElementPosition(value) triggerClientEvent ( "fire", source,source,x,y,z) end end end ) --Client function player_serial (plr,x,y,z) setPedAimTarget(plr,x,y,z) end addEvent("fire",true) addEventHandler("fire",root,player_serial) Link to comment
Seba500PLK Posted April 8, 2016 Share Posted April 8, 2016 addEventHandler("onPlayerTarget",root, function () if getPlayerSerial(source) == "" then local x,y,z = getElementPosition(source) triggerClientEvent ( "fire", source,source,x,y,z) end end) Link to comment
Seba500PLK Posted April 8, 2016 Share Posted April 8, 2016 addEventHandler("onPlayerTarget",root, function () if getPlayerSerial(source) == "" then local x,y,z = getElementPosition(source) triggerClientEvent ( "fire", source,source,x,y,z) end end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now