Jump to content

Need Help Please


illestiraqi

Recommended Posts

-- Server Side ( = 
addEventHandler("onPlayerLogin",root, 
function () 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
   setElementModel(source,id) 
elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
   setElementModel(source,id) 
   end 
end 
) 
  
Link to comment
-- Server Side ( = 
addEventHandler("onPlayerLogin",root, 
function () 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
   setElementModel(source,id) 
elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
   setElementModel(source,id) 
   end 
end 
) 
  

I see

setElementModel(source,id) 

where the id is thats where I put the model id correct? If so how do I put 2? is it

setElementModel(source,211, 217) 

what i just did is that correct?

Link to comment
-- Server Side ( = 
addEventHandler("onPlayerLogin",root, 
function () 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
   setElementModel(source,math.random ( 211, 217 )) 
elseif isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
   setElementModel(source,math.random ( 211, 217 )) 
   end 
end 
) 
  

Is that correct? Am I done now?

Link to comment
  
addEventHandler("onPlayerLogin",root, 
function () 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin"))  or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
   setElementModel(source,math.random ( 211, 217 )) 
   end 
end 
) 

Would be better

Link to comment

I tried this and fails. When I go to freeroam>skins>workers>staff girl, and boy lets me take it when im not staff... please fix

  
addEventHandler("onPlayerLogin",root, 
function () 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin"))  or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
   setElementModel(source,math.random ( 211, 217 )) 
   end 
end 
) 

Link to comment
I tried this and fails. When I go to freeroam>skins>workers>staff girl, and boy lets me take it when im not staff... please fix
  
addEventHandler("onPlayerLogin",root, 
function () 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin"))  or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
   setElementModel(source,math.random ( 211, 217 )) 
   end 
end 
) 

That's why you need to use: onElementModelChange.

Link to comment
I tried this and fails. When I go to freeroam>skins>workers>staff girl, and boy lets me take it when im not staff... please fix
  
addEventHandler("onPlayerLogin",root, 
function () 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin"))  or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("SuperModerator")) then 
   setElementModel(source,math.random ( 211, 217 )) 
   end 
end 
) 

That's why you need to use: onElementModelChange.

Can you please do that Idk how :(

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