-
Posts
128 -
Joined
-
Last visited
Everything posted by Static-X
-
Simply use setAccountData.
-
@klesh, 1. Add GUIEditor_Button = {} on top. 2. use guiSetText(e_u,getPlayerName(getLocalPlayer()) 3. use Btn_log = guiCreateButton 4. use Btn_log = guiCreateButton 5. use loginwindow = = guiCreateWindow 6. use getResourceRoot = getResourceRootElement(getThisResource()) on top. 99.8% agreed.
-
%MTASERVER%\'helpmanager'>'helpmanager_client.lua' search for wndHelp = guiCreateWindow(.2, .2, .6, .6, "Help", true) edit .2, .2, .6, .6 so it can meet your needs. This may help https://wiki.multitheftauto.com/wiki/GuiCreateWindow
-
Let me guess, he(Castillo/Solidsnake14) is making a notepad for his computer system resource right?
-
Read For replacing textures (TXD) https://wiki.multitheftauto.com/wiki/EngineLoadTXD https://wiki.multitheftauto.com/wiki/EngineImportTXD For replacing models (DFF) https://wiki.multitheftauto.com/wiki/EngineLoadDFF https://wiki.multitheftauto.com/wiki/EngineReplaceModel
-
Please use 'search' before posting. viewtopic.php?f=108&t=30215
-
oh well, dd/dm mode is included in 'race' resource/gamemode which would/should be on your server as default resources so you do not need to download it. You can get the DD/DM maps from Mta community.
-
Just type /elights again to turn it back to white.
-
[lua][/lua] highlighting
Static-X replied to Static-X's topic in Site/Forum/Discord/Mantis/Wiki related
--- test with [lua] addCommandHandler("cmd",function(player) outputChatBox(" ",player) end ) P/S: Both works for me.. --- test with [code=lua] addCommandHandler("cmd",function(player) outputChatBox(" ",player) end ) -
[lua][/lua] highlighting
Static-X replied to Static-X's topic in Site/Forum/Discord/Mantis/Wiki related
Bump: w00t it works -
Got it, sorry for any inconvenience.
-
As the title says, I have some problems with accessing settings of my resource, 'treasure'.It just don't actually show that my resource have any settings. Am I doing something wrong, or I need to add (use) something else? - Static-X
-
Make some profile settings, like real name, age etc. And only friends allowed to read it.
-
Post hunters, you know. Well, nice work, especially on the rotate part. Wish you good luck.
-
function tazer ( attacker, weapon ) if (attacker) and (weapon == 24) then local source = getLocalPlayer() triggerServerEvent ( "setAnim", source,source ) cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getRootElement(), tazer ) server side: function setAnim ( player ) if not isPedInVehicle( player ) then setTimer(setPedAnimation,2000,1, player,"ped", "FLOOR_hit_f") end end addEvent ( "setAnim", true ) addEventHandler ( "setAnim", getRootElement(), setAnim )
-
ERROR: telleports/telleports.lua:46: attempt to call global 'getLocalPlayer' (a nil value) local localPlayer = getLocalPlayer ( ) outputConsole ( "npcsparrowgo", localplayer ) He don't even know that getLocalPlayer() is client sided function or he can't differentiate between server and client sided scripts. Also, could you explain what is your goal ?
-
[put what zango said here] This would help getting the values https://wiki.multitheftauto.com/wiki/Gui ... nSize#Tips
-
You can get screen size by using guiGetScreenSize, see details here https://wiki.multitheftauto.com/wiki/GuiGetScreenSize P/S: Offtopic: last part of our names match
-
That is the same code. Whats the difference ? Actually using different functions instead of defining the function with event handlers or command handlers is more easy. root = getRootElement() function CP1 (pennis) if pennis == 1 then CP1FBI = createVehicle (490 , -2222.6044921875, -718.970703125 , 65.950073242188 , 355.869140625 , 3.9715576171875, 275.77331542969 ) CP1PED = createPed ( 285, 0, 0, 0 ) warpPedIntoVehicle ( CP1PED, CP1FBI) setElementData (CP1FBI, 'race.collideothers', 1 ) setVehicleEngineState (CP1FBI,true) setElementVelocity (CP1FBI,0,1,0) setElementHealth (CP1FBI, 1) setTimer(destroyElement,10000,1,CP1FBI) end end addEvent('onPlayerReachCheckpoint') addEventHandler('onPlayerReachCheckpoint', root, CP1)
-
+1 Aiboforcen. secondly, @trustno, afaik I know, the event you are using is exported from race gamemode, have a look at this https://wiki.multitheftauto.com/wiki/RU/ ... _in_detail, you probably have to use an integer, for example if you want to trigger your stuff when player reaches checkpoint #1, then you will have to use, function CP1 (cp) if cp == 1 then ... P/S: no need for getElementsByType.
-
You want this output to be printed after 2 secs?if yes then use, setTimer(outputChatBox,2000,1,getPlayerName(source).. " login and says: ".. data[1]["LoginMsg"].."!",getRootElement(),0,255,0,true)
-
If you mean auto starting resources then it can be configured in mtaserver.conf file. Open it with any text editor and scroll to the end and look at the lines at the end.