Jump to content

help important


nasserdfdd

Recommended Posts

Client

  
lp = getLocalPlayer() 
function enterveh () 
    if getElementData(lp,"sha") == true then 
    txd = engineLoadTXD("infernus.txd", 411 ) 
    engineImportTXD(txd, 411) 
    dff = engineLoadDFF("infernus.dff", 411 ) 
    engineReplaceModel(dff, 411) 
end 
end 
addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), enterveh ) 

Server

  
function permission (player) 
local accName = getAccountName ( getPlayerAccount ( player ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
     setElementData(player,"sha",true) 
end 
end 
addEventHandler("onPlayerVehicleEnter",root,permission) 

>~<

Link to comment

Client

function enterveh () 
    triggerServerEvent("check",localPlayer) 
    txd = engineLoadTXD("infernus.txd", 411 ) 
    engineImportTXD(txd, 411) 
    dff = engineLoadDFF("infernus.dff", 411 ) 
    engineReplaceModel(dff, 411) 
end 
addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), enterveh ) 

Server

function permission (source) 
local accName = getAccountName ( getPlayerAccount ( source ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
end 
end 
addEvent("check",true) 
addEventHandler("check",root,permission) 

Try this

Link to comment

Listen, the easy way to do that is to put the remplacer in client side for change the vehicle skin, second thing let the vehicle openable only for Staff team or Player who's in the ACL, after downloading client resource everyone can see your car skin, so i think this way is the best for what you trying to do.

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