Mauhan Posted October 4, 2012 Share Posted October 4, 2012 [PL] Chce zrobić definicje pojazdów - Żebym mógł wjeżdżać w marker tylko paroma pojazdami, a nie wszystkimi. [EN] (Sorry for my bad english) He wants to make the definitions of vehicles - So I can enter the marker only a few vehicles, but not all. Link to comment
Guest Posted October 4, 2012 Share Posted October 4, 2012 Proszę: local vehicle_ids = {[524] = true, [578] = true, [403] = true, [514] = true, [414] = true, [515] = true, [440] = true, [455] = true} local vehicle = getPedOccupiedVehicle(source) I później dajesz warunki, jeżeli model pojazdu gracza jest równy z podanymi: if vehicle_ids[getElementModel(vehicle)] then Link to comment
Mauhan Posted October 5, 2012 Author Share Posted October 5, 2012 Dzięki ! Wszystko działa. 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