Samking Posted August 30, 2018 Share Posted August 30, 2018 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
Dimos7 Posted August 30, 2018 Share Posted August 30, 2018 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
sanyisasha Posted September 1, 2018 Share Posted September 1, 2018 What is Omegausergroup and Xyruviausergroup? 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