Jump to content

ACL group gate


Samking

Recommended Posts

local gate = createObject(971, 2582.1005859375, -2115.7998046875, 3.5999999046326, 0, 0, 179.99450683594) 
local marker = createMarker(2581.15039, -2108.35376, 1.49555, "cylinder", 8, 0, 0, 0, 0) 
  
function moveGate(psource) 
     local Omegausergroup = getAccountName(getPlayerAccount(psource)) 
     if isObjectInACLGroup("user."..Xyruviausergroup, aclGetGroup("VIP")) then 
          moveObject(gate, 1000, 263.9, -1333.5, 46) 
     end 
end 
addEventHandler("onMarkerHit", marker, moveGate) 
  
function move_back_gate() 
     moveObject(gate, 1000, 263.9, -1333.5, 53.251480102539) 
end 
addEventHandler("onMarkerLeave", marker, move_back_gate) 
  

error attempt to concatenate global a userdata value.

 

help plz fast 

Link to comment
local gate = createObject(971, 2582.1005859375, -2115.7998046875, 3.5999999046326, 0, 0, 179.99450683594) 
local marker = createMarker(2581.15039, -2108.35376, 1.49555, "cylinder", 8, 0, 0, 0, 0) 
  
function moveGate(thePlayer) 
     if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)) , aclGetGroup("VIP")) then 
          moveObject(gate, 1000, 263.9, -1333.5, 46) 
     end 
end 
addEventHandler("onMarkerHit", marker, moveGate) 
  
function move_back_gate() 
     moveObject(gate, 1000, 263.9, -1333.5, 53.251480102539) 
end 
addEventHandler("onMarkerLeave", marker, move_back_gate) 
  

 

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