
Karuzo
Members-
Posts
1,213 -
Joined
-
Last visited
Everything posted by Karuzo
-
zombies resource running ?
-
Streamline Servers | Multiple Locations | 7 Years |
Karuzo replied to Streamline Servers's topic in Hosting solutions
How about some Servers in Europe ? Since those locations are pretty far away from me (Austria). -
What does not work exactly? What does debugscript 3 say?
-
Post your full code please.
-
And that won't make sense since guiSetVisible is a client-only function.
-
What? why should XML files be laggy?
-
Looks pretty cool. Good Job.
-
Yep, still the same.
-
Oh. But is there a work-around to do this ?
-
Ah, now it outputs "yaayyywarp" , but it still gives me the error as i said above, and i'm still not in the car. and for some reasons i get network trouble ??
-
Hey Guys, so i wanted to trigger an event if the player is warped into a vehicle, but that doesn't really work how it should. It gives me an error that says that i triggered a client side event but i didn't add a client sided event. It outputs me "YAY" but i just won't be warped to the vehicle. Heres my serverside lua: function table.random ( theTable ) return theTable[math.random ( #theTable )] end local vehicleIDS = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 } addEventHandler("onResourceStart", resourceRoot, function() local players = getElementsByType ( "player" ) for pls,thePlayer in ipairs(players) do veh = createVehicle(table.random(vehicleIDS), 3819,-1846.2,48.4, 0, 0) outputChatBox("YAY") fadeCamera(thePlayer, true) local warp = warpPedIntoVehicle(thePlayer,veh) if warp == true then outputChatBox("yayyyyyyyyyywarp") triggerClientEvent(thePlayer,"Spawned", root) end end end) Clientsided event part : function SpawnedEvent() outputChatBox("YAYTRIGGER") setTimer(Spawned,1000,-1) addEventHandler("onClientRender", root, Drawing) end addEvent("Spawned",true) addEventHandler("Spawned",root, SpawnedEvent)
-
What do you mean with save it ? To update it : you could use a timer or onClientRender.
-
Hey Guys, how can i make a counter which counts from 10 Minutes down? And how can i show the timer in minutes like 10:00 ?
-
Yeah, thank you that's helping me a lot. Tried it but it's not workin. I have a function which i can use to "sha" it, for example sha1(msg). But that's not workin, it gives me "Password isn't correct." function login_func ( username, password ) local sha = sha1(password) local query = dbQuery(connect, "SELECT * FROM wcf1_user WHERE username = '"..username.."'") local result = dbPoll(query, -1) if (#result ~= 0) then if (result[1].password == sha) then local x, y, z = data[1].x or 0, data[1].y or 0, data[1].z or 0 local money = data[1].money or 0 local skin = data[1].skin or 0 local health = data[1].health or 100 local int = data[1].int or 0 local dim = data[1].dim or 0 setElementData(source, "LoggedIN",true) outputChatBox("Du hast dich erfolgreich eingeloggt!",source,0,125,0) outputChatBox("Willkommen zurück, "..string.gsub ( getPlayerName ( source ), '#%x%x%x%x%x%x', '' ),source,0,125,0) triggerClientEvent(source,"closeLoginPanel",source) setPlayerMoney(source, money) setElementModel(source, skin) setElementHealth(source, health) setElementInterior(source, int) setElementDimension(source, dim) setElementPosition(source, x, y, z) setElementData ( source, "username", username ) else outputChatBox("Passwort isn't correct", source,125,0,0) end else outputChatBox("Irgendetwas stimmt nicht.", source, 125,0,0) end end addEvent("LoginRequest",true) addEventHandler("LoginRequest", root, login_func)
-
Ok, forget about that function, k ? I want to check if the player name which i SELECT from the database is like the username which i get triggered, and than get the salt of that acc, and the salted password, and than compare it with the password which i get triggered either. But how can i "pack" that in one Query, as many Queries wouldn't be that good, right ?
-
it's an useful function. https://wiki.multitheftauto.com/wiki/SmoothMoveCamera
-
FREEROAM GAMEMODE FOR 100 USD ? What!
-
set the Player to dimension 0 or 1 dunno which was the normal one
-
Anubhav: i think we still don't understand.
-
i don 't really get what you're trying to do.