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


Author Topic: Car Jacking  (Read 1463 times)

0 Members and 1 Guest are viewing this topic.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Car Jacking
« on: March 12, 2022, 07:19:17 AM »
Code: [Select]
CarJack = function()
  PedSetFlag(gPlayer, 42, true)
  while true do
   
    if IsButtonPressed(15, 0) then
      PedSetActionNode(gPlayer, "Cars/ExecuteNodes/GrapThorw/Attempt/GIVE/jointDrivers", "Cars.act")
    end
    Wait(0)
  end
end
Why it doesn't work, is the node wrong ?

Offline RBS ID

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • I don't know.
    • View Profile
    • This is website title.
Re: Car Jacking
« Reply #1 on: March 12, 2022, 08:36:57 AM »
Try add "/Global/" at the beginning of the node.

Btw, what does flag 42 do?

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 293
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: Car Jacking
« Reply #2 on: March 12, 2022, 01:38:30 PM »
Flag 42 is CanDriveCars.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: Car Jacking
« Reply #3 on: March 13, 2022, 08:12:24 PM »

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: Car Jacking
« Reply #4 on: March 13, 2022, 08:14:17 PM »
Flag 42 is CanDriveCars.
But AE version can't press button 9, button 9 doesn't show up auto

Offline mhdt

  • Jr. Member
  • **
  • Posts: 93
  • 中国!中国!中国!
    • View Profile
Re: Car Jacking
« Reply #5 on: March 14, 2022, 12:34:07 AM »
你是否用过IsButtonBeingPressed(9,0)?

Offline RBS ID

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • I don't know.
    • View Profile
    • This is website title.
Re: Car Jacking
« Reply #6 on: March 14, 2022, 01:11:27 AM »
Yeah, if there's a IsButtonBeingPressed(9, 0) statement in your script, then the (✓) button will appear. Other than IsButtonBeingPressed, it'll not appear.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: Car Jacking
« Reply #7 on: March 14, 2022, 03:39:50 AM »
你是否用过IsButtonBeingPressed(9,0)?
了解👍

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: Car Jacking
« Reply #8 on: March 14, 2022, 03:40:52 AM »
Yeah, if there's a IsButtonBeingPressed(9, 0) statement in your script, then the (✓) button will appear. Other than IsButtonBeingPressed, it'll not appear.
Ok👍