Jump to content

Confused... Help!


Recommended Posts

I followed a tutorial on the wiki of creating ped's but when i ran my script i got this error:

[17:35:29] start: Requested by {TJT}Tim

[17:35:29] Starting pedtest

[17:35:29] ERROR: ...ver/mods/deathmatch/resourcecache/pedtest/pedcrt.lua:3: attempt to call global 'createPed' (a nil value)

and the script was exactly as it is on the wiki:

function pedLoad ( name ) 
   createPed ( 120, 2422.7126464844, 1125.0426025391, 10.8203125 ) 
addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) 

Whats gone wrong?

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