DeaDD20 Posted May 11, 2020 Share Posted May 11, 2020 server.Lua local skins = function(id) for _, player in ipairs(getElementsByType("player")) do local uye = getPlayerAccount ( source ) if getPedOccupiedVehicle(source) and not isGuestAccount ( uye ) then triggerClientEvent(root,"skinUygula", source, getPedOccupiedVehicle(source),id) setAccountData ( uye, "hunter.skinID", id ) end end end addEvent("skinUygulaServer", true) addEventHandler("skinUygulaServer", root, skins) local skinsAktif = function() local uye = getPlayerAccount ( source ) if getPedOccupiedVehicle(source) and not isGuestAccount ( uye ) then id = getAccountData ( uye, "hunter.skinID" ) triggerClientEvent(root,"skinUygula", source, getPedOccupiedVehicle(source),id) end end addEvent("skinAktifServer", true) addEventHandler("skinAktifServer", root, skinsAktif) Link to comment
Tekken Posted May 11, 2020 Share Posted May 11, 2020 triggerServerEvent triggerClientEvent or using setElementData getElementData good luck Link to comment
DeaDD20 Posted May 13, 2020 Author Share Posted May 13, 2020 Like that? triggerEventHandler ( "skinUygula", root, function ("skinUygula", root, skins) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "VIP" ) ) and type == 0 then cancelEvent ( ) end 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