Turbe$Z Posted December 18, 2016 Share Posted December 18, 2016 local myCol = createColRectangle (-2039, 165, 22, 20) local myCol = createColRectangle (1342.5, -1817.4, 38, 40) local myCol = createColRectangle (1960, 1618.5, 16, 20) function destroyTheVehicles (player) if getElementType (player) == "player" and isPedInVehicle (player) then destroyElement (getPedOccupiedVehicle (player)) outputChatBox ("Ide nem léphetsz be kocsival! Felejtsd el, különben büntit kapsz.", player, r, g, b) end end addEventHandler ("onColShapeHit", myCol, destroyTheVehicles) Working on localhost server, but doesn't working on hosted server How to fix this bug? Link to comment
Mr.Loki Posted December 18, 2016 Share Posted December 18, 2016 This is because you are overwriting the variable "myCol" with the latter. Do not use the same names for the variables unless you want to overwrite it. 1 Link to comment
Turbe$Z Posted December 18, 2016 Author Share Posted December 18, 2016 12 minutes ago, loki2143 said: This is because you are overwriting the variable "myCol" with the latter. Do not use the same names for the variables unless you want to overwrite it. Thanks 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