[Release] Scammer's Script Collection (09/03/17)

How do you use timesync? I wanna be able to set it to night or day.

i have the same issue and i figured out that you have to do it inside your car if you lock it get out and do /lock it still says car is locked and i try to open it and its locked i wish you could fix this @pongo1231 because that would be a better script if you could

Hey! Anyone know how I can install No Drive by on my server? Where I need do put these files?

@pongo1231 Can you make a script that you can whitelist vehicle models and ped models by steamid or by essentialmode permisions?

The IP whitelist V2 still doesn’t seem to work for me. I’ve changed the “placeholder” for my ip and everything works fine. But if i change the “placeholder” to any other ip, and i try to join the server gives this error in the console and i’m still able to join (without my ip being whitelisted)

Error running system event handling function for resource WhitelistIP: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: server.lua:30: attempt to call a nil value (method 'Split')
stack traceback:
        server.lua:30: in function 'stringSplit'
        server.lua:18: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:124: in function <citizen:/scripting/lua/scheduler.lua:123>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:39: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:123: in function <citizen:/scripting/lua/scheduler.lua:92>

how do i remove the blip from the minimap only but keep the blip above the head?

As of right now pretty much the only solution is the disable scripthook on your server.

Okay so when I try to put the whitelist zip in nothing happens with my server I can still join and my friends can but I’ve not changed anything inside of the whitelistIP folder and files does anyone know how I can make this work ???

The script is broken, idk why but it can’t seem to filter the IP’s/Steam Identifiers correctly.

so for the whitelist do we need to just get everyones’s ipv4 address

Is it possible to make a command to set the time? Something like /time morning?

hey, i modified your model blacklist people to be able to whitelist people from the model blacklist. Could i Release it on fivem’s forum, of course giving you credits?

2 Likes

Still broke, I get this error and it still lets me join.

getting this error

Error running system event handling function for resource WhitelistIP: citizen:/
scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:30: attempt
to call a nil value (method ‘Split’)
stack traceback:
server.lua:30: in function ‘stringSplit’
server.lua:18: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scriptin
g/lua/scheduler.lua:174>
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scriptin
g/lua/scheduler.lua:138>

Replace the Stringsplit function in the server.lua file with

function stringsplit(inputstr, sep)
    if sep == nil then
        sep = "%s"
    end
    local t={} ; i=1
    for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
        t[i] = str
        i = i + 1
    end
    return t
end

Regarding the NoDriveBy script

I would like to ask if my understanding is correct. (I know there might be parts when you say duh, it’s literally there but bear with me)

In regards to the script, by default, it allows players to shoot out from the passenger seat.

When it goes to the other chunk of codes…

The first IF statement
I believe, from my understanding, that when there’s a person in a car, it checks if a person is in the main driver seat of the vehicle (basically the driver seat), it does not allow the civilian in the driver seat to shoot.

If I want to allow this, I’ll need to change SetPlayerCanDoDriveBy(PlayerId(), false) to SetPlayerCanDoDriveBy(PlayerId(), true).

The first ELSEIF statement
This basically re-iterates my first point that the passenger of the vehicle is able to shoot.

The first ELSE statement
If the requirement doesn’t meet either of the requirements for some reason, they’re not able to shoot.

-- CONFIG --

-- Allow passengers to shoot
local passengerDriveBy = true

-- CODE --

Citizen.CreateThread(function()
	while true do
		Wait(1)

		playerPed = GetPlayerPed(-1)
		car = GetVehiclePedIsIn(playerPed, false)
		if car then
			if GetPedInVehicleSeat(car, -1) == playerPed then
				SetPlayerCanDoDriveBy(PlayerId(), false)
			elseif passengerDriveBy then
				SetPlayerCanDoDriveBy(PlayerId(), true)
			else
				SetPlayerCanDoDriveBy(PlayerId(), false)
			end
		end
	end
end)

The main question
Now if I understand this correctly, this means there are variables pre-set for me to use?

At least from what I learned in school, things like GetVehiclePedIsIn and GetPlayerPed are pre-defined functions that has already been made to intake certain variables.

If my theory is correct, then is there a list of pre-defined functions somewhere that I can use? and if my theory is wrong, could I be enlightened on how it works?

My objective
I’m trying to code out a scenario whereby I allow the driver to do a shootout but only with a specific weapon.

So with that, my thoughts would be something along the line of this:

if GetPedInVehicleSeat(car, -1) == playerPed and GetPedWeapon() == “WEAPON_MARKSMANPISTOL”:
SetPlayerCanDoDriveBy(PlayerID(), true)

In wordings, if the person in the driver seat is present and they’re holding a weapon called a marksman pistol, it allows them to shoot with that weapon. I don’t know GetPedWeapon() is an actual function but seeing the naming methods that has been put out, I’m just throwing something that sounds like how I think it would appear.

Thanks in advance,
Marty

That script is actually suppose to prevent people from shooting out of there vehicles, if it isnt doing that then it is broken, i used it on my server a long time ago.

Why are you posting this here? what is the problem? does it have to do with this script? if not make a topic in technical support and fill out the support template.

Why isn’t the no drive-by v2 script working?

it is for me

20charrrrrrrr