4
« on: February 12, 2013, 08:55:14 PM »
Johnny To replace the Lola, what do I need to modify ..?25 to 23, but is changing the and continue to come, please let me know .. noticed Lola: (
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) -- teleports the player to the sidewalk outside the boys dorm
local l_0_5 = 217 -- Johnny (1)
local l_1_4, l_1_5, l_1_6 = PedGetPosXYZ(gPlayer) -- gets coordinates of the player on the map
local l_0_5 = PedCreateXYZ(l_1_3, l_1_4 + 1, l_1_5 + 1, l_1_6) -- create a ped (Johnny) and spawn them near the player
PedRecruitAlly(gPlayer, l_0_5, true) -- recruits the spawned ped as a bodyguard (local l_0_5 is assigned to model id 23 which is Johnny)
PedMakeAmbient(l_0_5) -- makes the spawned ped ambient
end
MissionCleanup = function() -- mission cleanup function
end -- end statement
main = function() -- Main mission function
repeat -- This makes the script run until the bodyguard is dismissed, attacked by the player or the player is busted
Wait(0) -- wait 0 seconds
until l_0_0 ~= false
Wait(3000) -- wait 3 seconds
MissionSucceed() -- ends mission
end