Jump to content

Problema Com Grupos


Recommended Posts

Estou tendo problemas tambem com este codigo assim como o outro de /prender

este e um de blitz não estou conseguindo deixar ele funcionar com varios grupos exemplo eu quero que funciona pra bope pmrj e pra eb so que não consigo

groupeName = "Blitz"














function dxMsg(source, text, type)
	exports.dxmessages:outputDx(source, text, type)
end	


function openRender(source)
    local accName = getAccountName(getPlayerAccount(source))
    if isObjectInACLGroup("user."..accName, aclGetGroup(groupeName)) then
		triggerClientEvent(source, "renderBlitz", root)
	end
end
addCommandHandler("blitz", openRender)

function createCone()
	local rx, ry, rz = getElementRotation(source)
	local x, y, z = getElementPosition(source)
	createObject(1237, x, y, z - 1.2)
end 
addEvent("createCone",true)
addEventHandler("createCone", root, createCone)

function createBarrier()
	local rx, ry, rz = getElementRotation(source)
	local x, y, z = getElementPosition(source)
	createObject(1228, x, y, z - 0.6, 0, 0, rz + 90)
end 
addEvent("createBarrier",true)
addEventHandler("createBarrier", root, createBarrier)

function createStinger()
	local rx, ry, rz = getElementRotation(source)
	local x, y, z = getElementPosition(source)
	createObject(2899, x, y, z - 0.9, 0, 0, rz + 90)
end 
addEvent("createStinger",true)
addEventHandler("createStinger", root, createStinger)

function createBarrier2()
	local rx, ry, rz = getElementRotation(source)
	local x, y, z = getElementPosition(source)
	createObject(1427, x, y, z - 0.6)
end 
addEvent("createBarrier2",true)
addEventHandler("createBarrier2", root, createBarrier2)

function destroyBlitz()
	restartResource(getThisResource())
end 
addEvent("destroyBlitz",true)
addEventHandler("destroyBlitz", root, destroyBlitz)

 

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