Beluga Posted November 16, 2010 Share Posted November 16, 2010 badlandsCol = createColCuboid(-781.25305175781,73.259292602539,0.3499011993408,100,100,10) function badlands_Enter(thePlayer,matchingDimension) local player = getLocalPlayer() if isPedInVehicle(player) then setRadioChannel(2) end end addEventHandler("onColShapHit",badlandsCol,badlands_Enter) I put this code on the server side, but it isn´t working. No errors or something. Link to comment
Aibo Posted November 16, 2010 Share Posted November 16, 2010 1. getLocalPlayer() is client function 2. setRadioChannel() is client function 3. there is no "onColShapHit" event, correct event is "onColShapeHit" and it is server-side. client event is "onClientColShapeHit". Link to comment
Beluga Posted November 16, 2010 Author Share Posted November 16, 2010 Hmm thanks, I'll put it to client side and have a look! 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