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


Author Topic: How to setup the drive by mod.  (Read 3039 times)

0 Members and 1 Guest are viewing this topic.

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
How to setup the drive by mod.
« on: July 29, 2015, 10:44:41 PM »
this is a mod that only Dream Is Dead and I found (not sure about that). but the code for drive by mod is:
PlayerFixToBackOfVehicle(BikeName,true)
but the drive by back seat only works for player so if you want the ped sitting at the front seat flee then you use
PedFlee(PedName) (Credit to DaBOSS for this code)
use PedPutOnBike(PedName,BikeName) to set the ped at the front seat
But if you want the slingshot functioning then you have to equip the slingshot or any other before you launch the script
There you have it! Player will sit at the back seat of vehicle. Enjoy
« Last Edit: July 29, 2015, 10:47:54 PM by UltimateGamer8 »

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Re: How to setup the drive by mod.
« Reply #1 on: July 29, 2015, 10:55:28 PM »
oops i forgot to say this. if you want the camera to different angle then u have to do this
while true do
local x,y,z = PedGetPosXYZ(gPlayer)
local a = x + 4
local b = y + 4
local c = z + 4
if PedIsInAnyVehicle(Ped) and PedIsInAnyVehicle(gPlayer) then
CameraSetXYZ(a,b,c)
CameraLookAtPlayer()

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: How to setup the drive by mod.
« Reply #2 on: July 30, 2015, 08:00:48 AM »
Interesting  :hmm:, I have the decompiled script for 3_04.lua I guess I never even cared to release the code.

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Re: How to setup the drive by mod.
« Reply #3 on: July 30, 2015, 08:47:23 AM »
Interesting  :hmm:, I have the decompiled script for 3_04.lua I guess I never even cared to release the code.
how do u even decompile mission scripts?

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: How to setup the drive by mod.
« Reply #4 on: July 30, 2015, 09:21:06 AM »
Interesting  :hmm:, I have the decompiled script for 3_04.lua I guess I never even cared to release the code.

Interesting....

how do u even decompile mission scripts?

A decompiler attempts to take a compiled LUA file (for Bully a LUR file) and produce some source code that if run would produce the same output. A decompiler does not gurantee the source that you get when decompiling will be the same, or anything like the original script. It just gets something that will do the same thing since compiled scripts don't remember what the non-compiled source looked like.
The LUA compiler for Bully is a special compiler created by Fred Tetra. Bully uses a modified version of LUA 5.0.2 but the LUA 5.0.2 compiler will not work, we need the special compiler. Similarly we need a special decompiler as well for Bully's special version of LUA 5.0.2. There have been decompilers like this made and scripts decompiled but not publicly released yet.

In short, you can't decompile the scripts unless you make your own decompiler or get one that isn't public from someone who has made one (you probably won't have much luck with that). However if you wait long enough my friend is planning to release his decompiled scripts after he fixes them up.

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: How to setup the drive by mod.
« Reply #5 on: July 30, 2015, 11:42:57 AM »
Yeah I got the decompiled scripts from a certain source but of course I cant release who I got it from and that is why I usually don't talk about the scripts.

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Re: How to setup the drive by mod.
« Reply #6 on: July 30, 2015, 11:47:06 AM »
now i understand :)