Jump to content

I want code


Ahmed Abo-elezz

Recommended Posts

this code if Model player = 133 then do thing
if ( getElementModel ( localPlayer ) == 133 ) then 

but i want code for wehicl it mean

if model vehicl = 601 then do thing

  
local pPlayerVehicle = getPedOccupiedVehicle ( localPlayer ) 
if pPlayerVehicle then 
     if getElementModel ( pPlayerVehicle ) == 601 then 
          -- Do you'r code here. 
     end 
end 
  

Link to comment
this code if Model player = 133 then do thing
if ( getElementModel ( localPlayer ) == 133 ) then 

but i want code for wehicl it mean

if model vehicl = 601 then do thing

  
local pPlayerVehicle = getPedOccupiedVehicle ( localPlayer ) 
if pPlayerVehicle then 
     if getElementModel ( pPlayerVehicle ) == 601 then 
          -- Do you'r code here. 
     end 
end 
  

تشكر اخى

Link to comment
this code if Model player = 133 then do thing
if ( getElementModel ( localPlayer ) == 133 ) then 

but i want code for wehicl it mean

if model vehicl = 601 then do thing

  
local pPlayerVehicle = getPedOccupiedVehicle ( localPlayer ) 
if pPlayerVehicle then 
     if getElementModel ( pPlayerVehicle ) == 601 then 
          -- Do you'r code here. 
     end 
end 
  

thank u

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...