Search found 9 matches

by wbty
September 22nd, 2018, 4:39 pm
Forum: Server and Scripting support
Topic: setCheckPointShowingForPlayer not working
Replies: 4
Views: 10957

Re: setCheckPointShowingForPlayer not working

Better solution for this on patch 12... Does that mean we can expect per player checkpoints?
by wbty
September 16th, 2018, 5:39 am
Forum: Server and Scripting support
Topic: setCheckPointShowingForPlayer not working
Replies: 4
Views: 10957

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
September 14th, 2018, 1:31 pm
Forum: Server and Scripting support
Topic: setVehicleTireStatus
Replies: 1
Views: 7169

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
September 11th, 2018, 11:45 am
Forum: Server and Scripting support
Topic: updateText
Replies: 1
Views: 6927

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 = getPlay...
by wbty
September 10th, 2018, 10:47 am
Forum: Server and Scripting support
Topic: getTime
Replies: 1
Views: 6602

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
September 10th, 2018, 7:19 am
Forum: Server and Scripting support
Topic: isPlayerOnline
Replies: 1
Views: 6881

isPlayerOnline

Example cmd: 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
September 10th, 2018, 3:32 am
Forum: Server and Scripting support
Topic: getTime
Replies: 1
Views: 6602

getTime

There is no functions on wiki like getTime or similar, how to find out what time is it?
by wbty
September 7th, 2018, 10:55 pm
Forum: Server and Scripting support
Topic: onPlayerKeyPress problem
Replies: 2
Views: 8175

Re: onPlayerKeyPress problem

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

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