HUNGRY:3 Posted August 13, 2015 Share Posted August 13, 2015 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
nasserdfdd Posted August 13, 2015 Author Share Posted August 13, 2015 i get this error warrning test\server.lua:3: bad argument @ getplayeraccount' expected element at argument 1,got boolean seond test\serverlua:4: attemept to concatentate local 'accname'(a boolean value) and the veh mod is not getting nor they are not kicking me from veh Link to comment
Danz Posted August 13, 2015 Share Posted August 13, 2015 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
nasserdfdd Posted August 13, 2015 Author Share Posted August 13, 2015 it give me Error:test\server.lus:3: attemept to concatentate local 'accname'(a boolean value) Link to comment
KariiiM Posted August 13, 2015 Share Posted August 13, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now