News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: How to replace Johnny lua Lola  (Read 1413 times)

0 Members and 1 Guest are viewing this topic.

Offline sjg6466

  • Newbie
  • *
  • Posts: 0
    • View Profile
How to replace Johnny lua Lola
« 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

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How to replace Johnny lua Lola
« Reply #1 on: February 13, 2013, 05:52:40 AM »
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 = nil
  local l_1_4, l_1_5, l_1_6 = PedGetPosXYZ(gPlayer) -- gets coordinates of the player on the map
  l_0_5 = PedCreateXYZ(25, 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)
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


I fixed the code for you.
« Last Edit: February 13, 2013, 05:54:28 AM by Admiral Red »