Ayy ppl so I saw that the scripting section is empty and I am a Scripter SOO I said to myself why not to teach you something that will help you in the future.. LETS STOP TALKING AND START WORKING !
-- First of all we have to define our function and set it. it goes like this function function name(arguments)
function HealTut( player, commandName )
-- After we defined our function We want to do that the script will set us 100 Health inGame for the ppl who type the command
setElementHealth(player,100)
-- We have put what should the function do if we run it (it will set the player's health to 100).
-- Now we need to put what does it say when you run the command.
outputChatBox("You have been successfully healed!,player)
-- We almost finished the script now we need to end the function so when we run it it will end with Healing the player and running the outputchatbox
end
-- We need to add the command handler which is the command that we type like /command so this function will run.
addCommandHandler("heal",HealTut)
=====
function functionname(arguments)
--You put the code here.
setElementHealth(theElement, newHealth(in our case is 100))
-- and then you must finish your function with 'end'
end
addCommandHandler("commandName", functionname)
==================
this is Copied from Wiki
Required Arguments
theElement: The ped, vehicle or object whose health you want to set.
newHealth: A float indicating the new health to set for the element.
==================