- Initiateur de la discussion
diddi
Geek suprême
- Messages
- 670
- Score réaction
- 47
- Points
- 140
Quelle est le problème avec mon job? Car y'a bien la vie mais pas le level ..
TEAM_CITIZEN = DarkRP.createJob("Dresseur", {
color = Color(40, 163, 45, 255),
model = {"models/pkmn trainer red/red.mdl"},
description = [[Vous etes un dresseur de Pokemon!]],
weapons = {"pokeball_admin"},
command = "dre",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Dresseur",
PlayerSpawn = function(ply)
ply:SetMaxHealth(10000)
ply:SetHealth(10000)
level = 1
end
})
Si je met le level avant le PlayerSpawn sa me met erreur LUA a la ligne PlayerSpawn..
TEAM_CITIZEN = DarkRP.createJob("Dresseur", {
color = Color(40, 163, 45, 255),
model = {"models/pkmn trainer red/red.mdl"},
description = [[Vous etes un dresseur de Pokemon!]],
weapons = {"pokeball_admin"},
command = "dre",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Dresseur",
PlayerSpawn = function(ply)
ply:SetMaxHealth(10000)
ply:SetHealth(10000)
level = 1
end
})
Si je met le level avant le PlayerSpawn sa me met erreur LUA a la ligne PlayerSpawn..