Jump to content

NPCs: "immortal peds"


Recommended Posts

This means that you need to specify a meta "client"? Or should he put his life in a folder "mods"?

I don't really know, what you want to say with this, but you need to put the script snippet into a script file, which itself is added with a 'type="client"'.

So let's say that your file is called client.lua. Then your meta.xml line would look like this:

<script src="client.lua" type="client" />

Here is another help for it:

https://wiki.multitheftauto.com/wiki/Client_side_scripts

Link to comment
  • 6 months later...
try this code
--the Ped-- 
local noobPed = createPed(278, 0, 0, 0, 0) 
setElementRotation(noobPed, ZRotation) 
  
  
--every 100 miliseconds the ped health will be set to 100-- 
function hp() 
setElementHealth(noobPed, 100) 
end 
setTimer, 100, 0) 

That uses too much CPU. Actually, Callum said how to do this.

Link to comment
  • 2 months later...

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