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


Show Posts

Messages | * Topics | Attachments

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - luizd90

Pages: [1]
1
LUA Scripting Help / isbuttonpressed Not work?
« on: March 07, 2014, 01:03:27 PM »
I press right and nothing happens
Code: [Select]
elseif IsButtonPressed(10,0) and IsButtonPressed(1, 0) then
PedSetActionNode(gPlayer,"/Global/G_Johnny", "Act/Anim/G_Johnny.act")

Here is my code

Code: [Select]
PedSetTypeToTypeAttitude(1, 13, 2)
PedSetTypeToTypeAttitude(2, 13, 2)
PedSetTypeToTypeAttitude(3, 13, 1)
PedSetTypeToTypeAttitude(5, 13, 1)
PedSetTypeToTypeAttitude(6, 13, 2)
PedSetTypeToTypeAttitude(11, 13, 2)

LoadStyles = function()
  PlayerSetInvulnerable(true)
  DisablePunishmentSystem(true)
  LoadAnimationGroup("Russell") 
  LoadAnimationGroup("B_Striker")
  LoadAnimationGroup("P_Striker")
  LoadAnimationGroup("Boxing")
  LoadAnimationGroup("Straf_Prep")
  LoadAnimationGroup("F_Preps")
  LoadAnimationGroup("G_Johnny")
  LoadAnimationGroup("F_Greas")
  LoadAnimationGroup("G_Grappler")
  LoadAnimationGroup("G_Striker")
  LoadAnimationGroup("Straf_Wrest")
  LoadAnimationGroup("DO_Striker")
  LoadAnimationGroup("DO_StrikeCombo")
  LoadAnimationGroup("F_Douts")
  LoadAnimationGroup("IDLE_JOCK_A")
  LoadAnimationGroup("F_JOCKS")
  LoadAnimationGroup("NPC_Mascot")
  LoadAnimationGroup("J_Grappler")
  LoadAnimationGroup("C_Wrestling")
  LoadAnimationGroup("Earnest")
  LoadAnimationGroup("SNERD_I")
  LoadAnimationGroup("SNERD_S")
  LoadAnimationGroup("N_Striker_B")
  LoadAnimationGroup("F_Nerds")
  LoadAnimationGroup("Nemesis")
  LoadAnimationGroup("Halloween")
  LoadAnimationGroup("TE_FEMALE") 
  LoadAnimationGroup("F_Girls")
  LoadAnimationGroup("NPC_Adult")
  LoadAnimationGroup("F_Adult")
  LoadAnimationGroup("LE_ORDERLY")
  LoadAnimationGroup("F_CRAZY")
  LoadAnimationGroup("NPC_Principal")
  LoadAnimationGroup("Authority")
  LoadAnimationGroup("POI_SMOKING")
  LoadAnimationGroup("Sitting_Boys")
  LoadAnimationGroup("Hang_Talking")
  LoadAnimationGroup("3_05")
  LoadAnimationGroup("5_02")
  collectgarbage()
end

MissionSetup = function()
l_0_0 = 1
PlayerSetHealth(200)
AreaTransitionXYZ(60, -773.293030, 363.286987, 6.396100)
DisablePunishmentSystem(true)
PedSetActionTree(gPlayer,"/Global/...........", "Act/Anim/.............act")
end

Action = function()
if IsButtonBeingReleased(2,0) and l_0_0 == 1 then
TextPrintString("Chicken", 4, 2)
elseif IsButtonBeingReleased(2,0) and l_0_0 == 2 then
TextPrintString("Potato", 4, 2)
elseif IsButtonBeingReleased(2,0) and l_0_0 == 3 then
TextPrintString("Modder", 4, 2)
elseif IsButtonBeingReleased(2,0) and l_0_0 == 4 then
TextPrintString("Well done mate", 4, 2)
end
end

Settings = function()
  if IsButtonPressed(10,0) and IsButtonPressed(0, 0) then
PedSetActionNode(gPlayer,"/Global/..............", "Act/Anim/...........act")
elseif IsButtonPressed(10,0) and IsButtonPressed(3, 0) then
PedSetActionNode(gPlayer,"/Global/..............", "Act/Anim/.............act")
elseif IsButtonPressed(10,0) and IsButtonPressed(1, 0) then
PedSetActionNode(gPlayer,"/Global/G_Johnny", "Act/Anim/G_Johnny.act")
elseif IsButtonPressed(10,0) and IsButtonPressed(2, 0) then
PedSetActionNode(gPlayer,"/Global/........................", "Act/Anim/.............act")
elseif IsButtonPressed(10,0) and IsButtonPressed (9, 0) then
PedSetActionNode(gPlayer,"/Global/........", "Act/Anim/........act")
elseif IsButtonPressed(10,0) and IsButtonPressed (12, 0) then
SoundPlayScriptedSpeechEvent(...........)
elseif IsButtonPressed(10,0) and IsButtonPressed (15, 0) then
SoundPlayScriptedSpeechEvent(...........)
elseif IsButtonPressed(6,0) and IsButtonPressed (7, 0) then
PedSetActionNode(gPlayer,"/Global/....................", "Act/Anim/.........act")
end
end

UnLoadStyles = function()
  UnLoadAnimationGroup("Russell") 
  UnLoadAnimationGroup("B_Striker")
  UnLoadAnimationGroup("P_Striker")
  UnLoadAnimationGroup("Boxing")
  UnLoadAnimationGroup("Straf_Prep")
  UnLoadAnimationGroup("F_Preps")
  UnLoadAnimationGroup("G_Johnny")
  UnLoadAnimationGroup("F_Greas")
  UnLoadAnimationGroup("G_Grappler")
  UnLoadAnimationGroup("G_Striker")
  UnLoadAnimationGroup("Straf_Wrest")
  UnLoadAnimationGroup("DO_Striker")
  UnLoadAnimationGroup("DO_StrikeCombo")
  UnLoadAnimationGroup("F_Douts")
  UnLoadAnimationGroup("IDLE_JOCK_A")
  UnLoadAnimationGroup("F_JOCKS")
  UnLoadAnimationGroup("NPC_Mascot")
  UnLoadAnimationGroup("J_Grappler")
  UnLoadAnimationGroup("C_Wrestling")
  UnLoadAnimationGroup("Earnest")
  UnLoadAnimationGroup("SNERD_I")
  UnLoadAnimationGroup("SNERD_S")
  UnLoadAnimationGroup("N_Striker_B")
  UnLoadAnimationGroup("F_Nerds")
  UnLoadAnimationGroup("Nemesis")
  UnLoadAnimationGroup("Halloween")
  UnLoadAnimationGroup("TE_FEMALE") 
  UnLoadAnimationGroup("F_Girls")
  UnLoadAnimationGroup("NPC_Adult")
  UnLoadAnimationGroup("F_Adult")
  UnLoadAnimationGroup("LE_ORDERLY")
  UnLoadAnimationGroup("F_CRAZY")
  UnLoadAnimationGroup("NPC_Principal")
  UnLoadAnimationGroup("Authority")
  UnLoadAnimationGroup("POI_SMOKING")
  UnLoadAnimationGroup("Sitting_Boys")
  UnLoadAnimationGroup("Hang_Talking")
  UnLoadAnimationGroup("3_05")
  UnLoadAnimationGroup("5_02")
end

main = function()
repeat
Action()
Settings()
Wait(0)
until not Alive
 end
Can anyone fix

2
Modding Questions/Help Archives / precision in 5 hit combo P_Striker_B
« on: January 26, 2014, 08:05:55 PM »
how do I get more precision in 5 hit combo P_Striker_B :)
The CeSSaRR saw that has a lot of precision in full style P_Striker_B :)
Sorry for Bad English :(

3
Modding Questions/Help Archives / how to return to normal game?
« on: January 14, 2014, 10:55:32 AM »
I tried
Code: [Select]
MissionCleanup = function()
 if PedIsDead(Bully01) then
 TextPrint("M_PASS", 3, 0) Wait(10000) MissionSucceed()
 if PedIsDead(gPlayer) then
 TextPrint("M_FAIL", 3, 0) Wait(10000) MissionFail()
end
end
end

then

Code: [Select]
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)

  Bully01 = PedCreateXYZ(99, l_1_0 + 1, l_1_1 + 1, l_1_2 + 1)
   if PedIsDead(Bully01) then
 TextPrint("M_PASS", 3, 0) Wait(10000) MissionSucceed()
 end
 if PedIsDead(gPlayer) then
 TextPrint("M_FAIL", 3, 0) Wait(10000) MissionFail()
  end
end

and did not complete the mission
not back to normal game
sorry for bad english

4
Modding Questions/Help Archives / how to create a menu in Lua code
« on: December 06, 2013, 07:27:44 AM »

how to create a menu in Lua code
  I will try to create a mod

Pages: [1]