-
Posts
827 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Cadu12
-
https://community.multitheftauto.com/index.php?p= ... ls&id=3196
-
LOLOLOL! Epic fail. There is no set screen, only it'll returns wight and height.
-
function sendMessageAll(CZ, EN) for _, player in ipairs(getElementsByType("player")) do local hracuvJazyk = getElementData(player, "lang") if (hracuvJazyk == "EN") then outputChatBox(EN, player, 250, 0, 0, true) else outputChatBox(CZ, player, 250, 0, 0, true) end end end Edit: Damnit, Solidsnake14 was faster than me...
-
Resolved, I got it.
-
https://wiki.multitheftauto.com/wiki/GetPlayersInTeam
-
Use onClientResourceStart
-
https://wiki.multitheftauto.com/wiki/TriggerClientEvent https://wiki.multitheftauto.com/wiki/TriggerServerEvent
-
function onPlayAgainRequest() local veh = exports.race:getPlayerVehicle(source) setElementData(source, 'race.spectating', false) setElementData(source, 'race.playagain', true) spawnPlayer(source, 4, 0, 3) setCameraTarget(source, source) warpPedIntoVehicle(source, veh) end addEventHandler("onRequestRespawn", getRootElement(), onPlayAgainRequest) Im not sure if it'll works. untested
-
Yea, that I mean.
-
I have problem with Race gamemode. It dont me let create vehicle and warpPedIntoVehicle, it will deleted when I created... I cant found some files or/and lines to edit... function onPlayAgainRequest() local veh = exports.race:getPlayerVehicle(source) local model = getVehicleModelFromName(getVehicleName(veh)) local vehicle = createVehicle(model, 4, 0, 3) setElementData(source, 'race.spectating', false) setElementData(source, 'race.playagain', true) setCameraTarget(source, source) spawnPlayer(source, 4, 0, 3) warpPedIntoVehicle(source, vehicle) end addEventHandler("onRequestRespawn", getRootElement(), onPlayAgainRequest) PS: onRequestRespawn is a custom event.
-
Change it to 10x10 or 11x16. "Listen i have 20 years ago and i no want spend the time with the kids. 1.i never enter in u server 2.my name is hunterix ever 3.maybe the kinds banned in my server enter in u server . ..idk 4. i have 20 years (again)" You have 20 years old? Wtf is that it? You can't getting lua skills?
-
Hunterix, post your code using dxDrawImage
-
You can request to make new function: bugs.mtasa.com
-
https://wiki.multitheftauto.com/wiki/Scr ... troduction http://www.lua.org/manual/5.1/manual.html
-
I tinhk line 8 is wrong. Remove it Edit: https://wiki.multitheftauto.com/wiki/IsGuestAccount
-
exports.scoreboard:addScoreboardColumn('Rank') function scoreLevel () local account = getPlayerAccount(source) local level = getAccountData(account, "rank") local nameimage = "level" if rank== false then setElementData(source, "Rank", "level0.png") --Show the image for guest players else setElementData(source, "Rank", tostring(nameimage .. level .. ".png" )) --Show the images rank -- If you doesnt have image in your resource \/ -- Try use ":Panel\\Rank\\"..nameimage..level..".png" end end addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel) Not tested.
-
No, itsnt bug. Did you added "" in your meta.xml? Learn more: https://wiki.multitheftauto.com/wiki/Resources
-
You have to edit 'nametags.lua' in race resource.
-
int main() { int a = rand() % 1; if (a == 0) cout << "Im leanring C++" << endl; else cout << "http://www.cprogramming.com/tutorial.html" << endl; system("pause"); return 1; }
-
Im in, but I dont know if I can be. PS: Race ftw
-
[16:49:06] Dr.Pho-X: cadu? i need help from you.... I'll send you a script that says the money when you end up on the 2nd and 3rd and 4th place, etc. .. but at first it does not work ... I'm learning the scripts but so far I'm not even fix this. [16:49:20 | Edited 16:49:21] Dr.Pho-X: i am rly i dont know how to fix it [16:49:31] *** Dr.Pho-X sent main_server.lua *** [16:49:48] • Carlos Eduardo •: I dont have time [16:50:05] Dr.Pho-X: [16:50:18] Dr.Pho-X: so later help me please ... i am rly need help [16:50:22] Dr.Pho-X: its short script [16:50:48] Dr.Pho-X: 29 paragraphs [16:51:33] • Carlos Eduardo •: hm [16:51:40] • Carlos Eduardo •: /debugscript 3? [16:52:09] Dr.Pho-X: script work [16:52:12] Dr.Pho-X: but not for 1st [16:52:12] Dr.Pho-X: place [16:52:55] • Carlos Eduardo •: [url=https://wiki.multitheftauto.com/wiki/TriggerEvent]https://wiki.multitheftauto.com/wiki/TriggerEvent[/url] [16:53:02] • Carlos Eduardo •: You have to edit your race [16:53:48] Dr.Pho-X: please.. can you fix it? [16:53:54] • Carlos Eduardo •: [16:53] • Carlos Eduardo •: <<< You have to edit your race [16:54:01] • Carlos Eduardo •: [16:52] • Carlos Eduardo •: <<< [url=https://wiki.multitheftauto.com/wiki/TriggerEvent]https://wiki.multitheftauto.com/wiki/TriggerEvent[/url] You have to edit your race [16:55:38] Dr.Pho-X: and it is? race_client.lua? [16:55:41] Dr.Pho-X: or _server.lua? [16:56:12 | Edited 17:29:35] • Carlos Eduardo •: modes folder [16:57:17] Dr.Pho-X: destructionderby.lua? [16:57:45] • Carlos Eduardo •: yea You cant read about triggerEvent?
-
exports.killmessages:outputMessage({{"image",path="win.png",width=24},getPlayerName(source)},getRootElement(),255,0,0)