#maji-smashgrab

1 messages · Page 1 of 1 (latest)

kindred magnet
primal onyx
#

Super sexy

frail oar
#

amazing thank you!

kindred magnet
kindred magnet
foggy folio
#

awesome. thanks

kindred magnet
foggy folio
kindred magnet
foggy folio
iron birch
#

cool script!!

iron birch
#

not expecting spport on a free release, although is anyone having problems with it functioning nicely with ps-dispatch.

If we make a change to

-- Police settings
Config.Police = {
    AlertChance = 100, -- 50% chance to alert police
    RequiredCops = 0, -- Minimum cops online
    JobNames = {'police', 'sheriff'} -- Police job names
}```

It sends an error, specifically - ```[script:maji-smashgra] SCRIPT ERROR: @maji-smashgrab/bridge/server.lua:177: No such export VehicleTheft in resource ps-dispatch``` & doesn't give any items. 

A fresh install works fine, but changing those settings seems to mess with it.
boreal crescent
# iron birch not expecting spport on a free release, although is anyone having problems with ...

Just had a look at it, looks like the implementation of the ps-dispatch alert is wrong as there are no server side exports for alerts with ps. Instead you just want to add something like exports['ps-dispatch']:CarJacking(vehicle) to line 657 in client/main.lua right under the TriggerServerEvent('smashgrab:server:reward', vehicleId, vehicleCoords, vehicleData.modelType). This should trigger the alert from the client side and send through the vehicle details. Cant confirm right now due to some issues with my dev server.

kindred magnet
#

Oops

dusk shard
#

Any luck with above error, it script seems to work but when police is notified that error appears and no rewards is given.

dusk shard
#

yerh,
[script:maji-smashgra] SCRIPT ERROR: @maji-smashgrab/bridge/server.lua:177: No such export VehicleTheft in resource ps-dispatch

#

The error:

SCRIPT ERROR: @maji-smashgrab/bridge/server.lua:177: No such export VehicleTheft in resource ps-dispatch

so my understanding is that the ps-dispatch resource does not have the VehicleTheft function registered as an export.

quiet moth
#

it does

#

it just doesnt have one server sided

dusk shard
#

yerh i do believe i have done such adjustments

line 656 TriggerServerEvent('smashgrab:server:reward', vehicleId, vehicleCoords, vehicleData.modelType)
line 657 exports['ps-dispatch']:CarJacking(vehicle)

[script:maji-smashgra] [SmashGrab] Player *****(ID: 1) found backpack containing: 1x wallet at coords: 169.52, -686.63, 32.50
[script:maji-smashgra] SCRIPT ERROR: @maji-smashgrab/bridge/server.lua:177: No such export VehicleTheft in resource ps-dispatch

quiet moth
#

u need to code out the export on bridge/server.lua:177 out

#

so put -- infront of it

dusk shard
#

yes, have just done this.
tested and working.
i would like to thank you for support and help 👍

quiet moth
#

no problem 🤝

kindred magnet
#

Yeah I just never got around to fixing it. My bad

#

I’m a lazy pos

quiet moth
#

all good

#

nice script

dusk shard
#

yes, indeed i do like it a nice simple script to ad a little something.

#

i've noticed this pop up in the f8 console tho,

^3Warning: attempted to remove a zone that does not exist (id: smash_grab_499_passenger_door)^7

a large amount too.

quiet moth
#

Nothing serious

iron birch
#
        exports.ox_lib:notify({
            title = 'Smash & Grab',
            description = 'Script loaded successfully!',
            type = 'success',
            duration = 3000
        })
    end```
#

would we be able to disable this?

quiet moth
#

Just remove it