Jump to content

[HELP] Definicje pojazdów (Definitions vehicles)


Recommended Posts

[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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...