Jump to content

Question


TrmPlmn

Recommended Posts

You can set an elementData to the player and within this function zombie_check () in client side you check first if localPlayer has that element data if it does you do not run the code the else run the code.

Like this 

setElementData(localPlayer, "zombiesNotFollow", true); --You can set this both client and server side, but I suggest server side as it's much more secure.

and 

function zombie_check () -- LINE 33
	if (getElementData(localPlayer, "zombiesNotFollow") or false) then return; end
	if (getElementData (getLocalPlayer (), "zombie") ~= true) and ( isPedDead ( getLocalPlayer () ) == false ) then
		-- a lot of code here.........
	end
end

TBW there are a lot of optimizations to be done in this resource, I'm currently working on a better version will release when it's done!

Link to comment

 

Line 440 function SpawnZombie () replace this:

if isElement(thePlayer) then

with this:

if isElement(thePlayer) and not (getElementData(thePlayer, "zombiesNotFollow") or false) then
Quote

bad argument in line 86

That may happen because the zombie died or got deleted.

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