Tired of other developers charging for this. So made my own. Have fun, prob won't update it any further unless absolutely breaking, do as you wish with it.
https://github.com/MajiSP/maji-smashgrab
#maji-smashgrab
1 messages · Page 1 of 1 (latest)
Super sexy
amazing thank you!


awesome. thanks
Yw 
looks really good. gonna def toss it in my server
You can fs make it better too. It took me maybe an hour or two to make this. Realistically was just a test to see how long it would take me to recreate a $40 script.
Definitely. Looks good with what you got now tho. Plus I'm sure people will prob contribute also
cool script!!
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.
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.
Oops
Any luck with above error, it script seems to work but when police is notified that error appears and no rewards is given.
what error?
no such export?
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.
there is your fix
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
yes, have just done this.
tested and working.
i would like to thank you for support and help 👍
no problem 🤝
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.
Nothing serious
exports.ox_lib:notify({
title = 'Smash & Grab',
description = 'Script loaded successfully!',
type = 'success',
duration = 3000
})
end```
would we be able to disable this?
Just remove it