Jump to content

Why doesn't this work?


Recommended Posts

  • Moderators
Posted
function ( ) 
local eop = getPedStat ( source, 75 ) 
setPedStat (source, 75, eop + 500 ) 
end 
addEventHandler("onPlayerSpawn", root, ) 

WIKI mta:

onPlayerSpawn

This event is called when a player spawns.

Parameters

  
float posX, float posY, float posZ, float spawnRotation, team theTeam, int theSkin, int theInterior, int theDimension 
  

  • posX: The X position the player spawned at
    posY: The Y position the player spawned at
    posZ: The Z position the player spawned at
    spawnRotation: The rotation the player spawned with
    theTeam: The team the player spawned with
    theSkin: The skin / model the player spawned with
    theInterior: The interior the player spawned in
    theDimension: The dimension the player spawned in

Source

The source of this event is the player that just spawned.

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