Jump to content

Help Scripting!


Recommended Posts

skinid = getElementModel(source)

carid = getElementModel(596)

if skinid==280 or skinid==281 or skinid==282 and carid==596 or carid==598 or carid==597 and isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "police" ) ) then

else

setVehicleLocked ( 596, true )

setVehicleLocked ( 598, true )

setVehicleLocked ( 597, true )

end

is it this?

Link to comment
  • Moderators

Where is your event? Your function?

Btw:

carid = getElementModel(vehicle) -- not a car id. 
-- and 
if (skinid==280 or skinid==281 or skinid==282 and carid==596 or carid==598 or carid==597) and isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "police" ) ) then 

Link to comment

function vehicle() 
carid = getElementModel(vehicle) -- not a car id. 
-- and 
if (skinid==280 or skinid==281 or skinid==282 and carid==596 or carid==598 or carid==597) and isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "police" ) ) then 
else 
setVehicleLocked ( 596, true ) 
setVehicleLocked ( 598, true ) 
setVehicleLocked ( 597, true ) 
end 
addEventHandler("isVehicleLocked",vehicle) 

So is it like this?

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