VenomOG Posted April 23, 2018 Share Posted April 23, 2018 server side addCommandHandler("dude", function(thePlayer) local gunner = createPed(0, 0, 0, 0) giveWeapon(gunner, 31, 999999999, true) local posX, posY, posZ = getElementPosition(thePlayer) setElementPosition(gunner, posX + 2, posY, posZ) triggerClientEvent("onRequestStartBlabla", thePlayer, gunner) outputChatBox("gunner!") end) --client side local theDude = nil function shooter() if(theDude == nil)then return end local vehicle = getPedOccupiedVehicle(getLocalPlayer()) if(vehicle == false)then return end local isShooting = getControlState("vehicle_secondary_fire") if(isShooting)then setPedControlState(theDude, "fire", true) outputChatBox("is shooting!") else setPedControlState(theDude, "fire", false) end end addEvent("onRequestStartBlabla", true) addEventHandler("onRequestStartBlabla", getRootElement(), function(gunner) theDude = gunner addEventHandler("onClientRender", getRootElement(), shooter) end) Link to comment
5150 Posted April 27, 2018 Share Posted April 27, 2018 could you add a better description of what you want please? Link to comment
VenomOG Posted April 28, 2018 Author Share Posted April 28, 2018 I want create a zone and if coo teams enter the PEDs shoot at them Link to comment
[SAEG]Wicked Posted April 28, 2018 Share Posted April 28, 2018 You are Venom ? lol. This guy is stealing our scripts and changing everything with our server name to his -,-.He is just a retard, please ignore him. 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