Jump to content

script not work


Resto

Recommended Posts

hello, please why this script not work? :oops:

vipcar1 = { [520] = true } 
vipcar2 = { [411] = true } 
function  lockPrivate( player, seat, jacked ) 
    local accName = getAccountName ( getPlayerAccount ( player ) ) 
    if not ( isObjectInACLGroup ( "user."..accName, aclGetGroup ( "VIP" ) ) ) and ( vipcar1[getElementModel(source)] ) or ( vipcar2[getElementModel(source)] )then 
        cancelEvent() 
        outputChatBox ("Dont have VIP !!!", player, 255, 255, 255, true ) 
    end 
end 
addEventHandler ( "onVehicleStartEnter", root, lockPrivate ) 

Link to comment
local vipcars = {  
[520] = true, 
[411] = true, 
} 
function  lockPrivate( player, seat, jacked ) 
    if vipcars[getElementModel(source)] then 
    local accName = getAccountName ( getPlayerAccount ( player ) ) 
        if not isObjectInACLGroup( "user."..accName, aclGetGroup ( "VIP" ) ) then 
            cancelEvent() 
            outputChatBox ("Dont have VIP !!!", player, 255, 255, 255, true ) 
        end 
    end 
end 
addEventHandler ( "onVehicleStartEnter", root, lockPrivate ) 

Link to comment
local vipcars = {  
[520] = true, 
[411] = true, 
} 
function  lockPrivate( player, seat, jacked ) 
    if vipcars[getElementModel(source)] then 
    local accName = getAccountName ( getPlayerAccount ( player ) ) 
        if not isObjectInACLGroup( "user."..accName, aclGetGroup ( "VIP" ) ) then 
            cancelEvent() 
            outputChatBox ("Dont have VIP !!!", player, 255, 255, 255, true ) 
        end 
    end 
end 
addEventHandler ( "onVehicleStartEnter", root, lockPrivate ) 

Thanks. :lol:

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