Quote from: Toejam on November 04, 2024, 04:12:22 PMTell me, does GTA Connect support the drive-by option? When a passenger, while in a car, can shoot from it, like gangs?Not with scripting, no.
Quote from: volvofan on June 24, 2024, 10:30:47 PMYour script does not work for me in GTA 3. I just get: TypeError: localPlayer is null for the line localPlayer.skin = skinId;.
It seems like there isn't any script yet for skin-changing here: https://github.com/VortrexFTW/v-essentials
Maybe in the future?
function setDoingDriveby ( )
-- we check if local player isn't currently doing a gang driveby
if not isPedDoingGangDriveby ( localPlayer ) then
-- if he got driveby mode off, turn it on
setPedWeaponSlot ( localPlayer, 4 )
setPedDoingGangDriveby ( localPlayer, true )
else
-- otherwise, turn it off
setPedWeaponSlot ( localPlayer, 0 )
setPedDoingGangDriveby ( localPlayer, false )
end
end
addCommandHandler ( "driveby", setDoingDriveby )