SnoopCat Posted November 6, 2011 Posted November 6, 2011 hello i was trying to create a hunter alert sistem that when someone reach the hunter it says on the screen for 5 secs "Hunter Reached" this is what i do but isnt working Server side: function someoneReachedHunter(number, sort, model) if sort == "vehiclechange" and model == 425 then dxDrawText("HUNTER ENCONTRADO!",226.0,637.0,625.0,671.0,"bankgothic","left","top",false,false,false) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter) end Meta: "Hunter_Alert" author="SnoopCat" type="script" version="1.1" /> VISIT TSW RACING SERVER http://tswracing.net/
HunT Posted November 6, 2011 Posted November 6, 2011 Why dxDrawText is clientside. Call him with TriggerClientEvent @Huntone_
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