Search found 8 matches

by wbty
Sun Sep 16, 2018 10:39 am
Forum: Server and Scripting support
Topic: setCheckPointShowingForPlayer not working
Replies: 1
Views: 39

setCheckPointShowingForPlayer not working

When I create checkpoint and then try to hide it for playerid only checkpoint blip will be hidden but checkpoint remains.
by wbty
Fri Sep 14, 2018 6:31 pm
Forum: Server and Scripting support
Topic: setVehicleTireStatus
Replies: 1
Views: 23

setVehicleTireStatus

Information on wiki are not correct: Int tireId: 0-6, IDs 3-4 are only used by Trucks Bool status: True: fix the tire, False: pops it server log: setVehicleTireStatus ids are 0-5 - I discovered IDs 2,3 are only used by trucks - false and true are reversed so if you want to pop the tire you have to p...
by wbty
Tue Sep 11, 2018 4:45 pm
Forum: Server and Scripting support
Topic: updateText
Replies: 1
Views: 47

updateText

1. updateText not working for me, there are no error in log. Beside that, I think there is missing playerId param since is drawText created for playerId. Should be: updateText(playerId, textId, string, rgba) Am I wrong? 2. if(string.sub(text, 1, 7) == "/fixveh") then local carid = getPlayerDriving(...
by wbty
Mon Sep 10, 2018 3:47 pm
Forum: Server and Scripting support
Topic: getTime
Replies: 1
Views: 25

Re: getTime

Ok forgive me I'm new.. I discovered in lua is possible to use os.date()

Code: Select all

print(os.date())
Mon Sep 10 17:48:18 2018
by wbty
Mon Sep 10, 2018 12:19 pm
Forum: Server and Scripting support
Topic: isPlayerOnline
Replies: 1
Views: 26

isPlayerOnline

Example cmd:

Code: Select all

	if(string.sub(text, 1, 10) == "/amionline") then
		if(isPlayerOnline(playerid) == true) then
			sendPlayerMsg(playerid,"You are online", 0xFFFFFFFF)
		else
			sendPlayerMsg(playerid,"You are not online!", 0xFFFFFFFF)
		end
	end
Why return false if player IS online?
by wbty
Mon Sep 10, 2018 8:32 am
Forum: Server and Scripting support
Topic: getTime
Replies: 1
Views: 25

getTime

There is no functions on wiki like getTime or similar, how to find out what time is it?
by wbty
Sat Sep 08, 2018 3:55 am
Forum: Server and Scripting support
Topic: onPlayerKeyPress problem
Replies: 2
Views: 31

Re: onPlayerKeyPress problem

Thanks, it works. That was very quick fix you guys are awesome.
by wbty
Fri Sep 07, 2018 7:29 pm
Forum: Server and Scripting support
Topic: onPlayerKeyPress problem
Replies: 2
Views: 31

onPlayerKeyPress problem

Hi,
I need a little help with this, does anyone know correct way to detect player keys?
I already made something but I got error

Code: Select all

Event onPlayerKeyPress: attempt to call a number value