Bully-Board
Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: bullymodder74 on September 19, 2015, 04:49:48 PM
-
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
local l_1_0 = 270 -- X coords
local l_1_1 = -110 -- Y coords
local l_1_2 = 6.4000000953674 -- Z coords
PlayerSetHealth(200) -- gives the player 200 health
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
end
MissionCleanup = function()
end -- end statement
main = function() -- Main mission function
repeat
Wait(0)
until l_0_0 ~= false
Wait(3000)
MissionSucceed()
end
TextPrintString ("Preps Vs Greasers Enjoy By: Alexander Enjoy "), 4, 1)
PedCreateXYZ (33, X, Y, Z)
PedCreateXYZ (34, X, Y, Z)
PedCreateXYZ (35, X, Y, Z)
PedCreateXYZ (37, X, Y, Z)
PedCreateXYZ (40, X, Y, Z)
PedCreateXYZ (30, X, Y, Z)
PedCreateXYZ (31, X, Y, Z)
PedCreateXYZ (32, X, Y, Z)
PedCreateXYZ (21, X, Y, Z)
PedCreateXYZ (22, X, Y, Z)
PedCreateXYZ (23, X, Y, Z)
PedCreateXYZ (24, X, Y, Z)
PedCreateXYZ (26, X, Y, Z)
PedCreateXYZ (27, X, Y, Z)
PedCreateXYZ (28, X, Y, Z)
PedCreateXYZ (29, X, Y, Z)
PedAttack(Darby, gPlayer,1)
PedAttack(Johnny, gPlayer,1)
PedAttack(Justin, gPlayer,1)
He is looking at the notepad and was looking for the error but do not see any compile errors but I want but I get error
-
ok
what the hell is this bruv
you dont even have coord's for your ped's to spawn?
there not even in the mod it-self it's just stuck out like a tiny bit of paper not sticked in a book
put it in main function or something i dont remember much, but you need cord's for the peds all i know
-
It's pretty simple you have to add something to the PedCreateXYZ a cord which is an area coord that spawns the peds at a specific location look at my tutorial to figure out what you need.
Preppy = PedCreateXYZ(22, -522.3120, -22.0529, 35.7500)
It should look something like this.
-
I did not ask for help because I did not find errors but that other mods if I did well to compile lua now only ask for this help because they found the mistake and miss I had to put Preppy = PedCreateXYZ (22, -522.3120, -22.0529, 35.7500) code ALPHATECH thanks for what I did compile other mods me well ok thanks bye ;D