Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. , You mean the resources i don't think one exists but search again here: https://community.multitheftauto.com/index.php?p=resources Good luck.
  2. JR10

    RPG Server?

    I don't think that someone will help you for admin rights you should pay him or something.
  3. Hi, When i see an object in gta sa i want to know what is the model for it so i can use it with engineImportTXD But idk it's full name i just know it But i guess there is a way of doing this is there?? Thanks in advance.
  4. JR10

    Markers

    You are right but i prefer client event. because So i just prefer using client scripts.
  5. Hmm, why wont it work? Sorry but i just want to understand why
  6. Post the errors or the warnings. and maybe try this: a1 = createVehicle( 416, 10, 0, 0 ) a2 = createVehicle( 416, 20, 0, 0 ) a3 = createVehicle( 416, 30, 0, 0 ) addEventHandler("onVehicleStartEnter", getRootElement(), function( player, seat, jacked, door ) if door == 2 or 3 and source == a1 or source == a2 or source == a3 then cancelEvent() if source == a1 then setElementPosition(player, 2003.3, 2284.2, 1011.1) setElementDimension( player, 103 ) setElementData( player, "ambulance", 1 ) bindKey(player,"num_5", "down", bajar) outputChatBox("Pulsa num_5 para bajar", player) -- "Use num_5 to get off the car" elseif source == a2 then setElementPosition(player, 2003.3, 2284.2, 1011.1) setElementDimension( player, 104 ) setElementData( player, "ambulance", 2 ) bindKey(player,"num_5", "down", bajar) outputChatBox("Pulsa num_5 para bajar", player) -- "Use num_5 to get off the car" elseif source == a3 then setElementPosition(player, 2003.3, 2284.2, 1011.1) setElementDimension( player, 105 ) setElementData( player, "ambulance", 3 ) bindKey(player,"num_5", "down", bajar) outputChatBox("Pulsa num_5 para bajar", player) -- "Use num_5 to get off the car" end end end ) function bajar( player ) ambulance = getElementData( player, "ambulance" ) if ambulance == 1 then ax, ay, az = getElementPosition( a1 ) setElementDimension( player, 0 ) setElementPosition( player, ax, ay, az ) elseif ambulance == 2 then ax, ay, az = getElementPosition( a2 ) setElementDimension( player, 0 ) setElementPosition( player, ax, ay, az ) elseif ambulance == 3 then ax, ay, az = getElementPosition( a3 ) setElementDimension( player, 0 ) setElementPosition( player, ax, ay, az ) end end
  7. JR10

    Markers

    No because it's client sided and you will make an event for it and you will trigger it server side for the admin only if you did it right only the admins will see it.
  8. Post errors warnings. I didn't pay attention but how is this: kufurtablo = { "son of a bitch", } addEventHandler('onPlayerChat', root, function(msg, msgType) if msgType == 0 then for i,v in pairs(kufurtablo) do local str = string.lower ( v ) if ( string.find ( str, v ) ) then banPlayer(source, false, false, true, nil, 'Bad Word', 12000) break end end end end ) here function(msg, msgType) if msgType == 0 then for i,v in pairs(kufurtablo) do local str = string.lower ( v ) if ( string.find ( str, v ) ) then str is the lower of v then how you are checking if v is found in str i am not sure if iam right but shouldn't it be like this: kufurtablo = { "son of a bitch", } addEventHandler('onPlayerChat', root, function(msg, msgType) if msgType == 0 then for i,v in pairs(kufurtablo) do local str = string.lower ( msg ) if ( string.find ( str, v ) ) then banPlayer(source, false, false, true, nil, 'Bad Word', 12000) break end end end end )
  9. engineImportTXD(txd, model) You must replace model with a number "model" of the object you want to replace.
  10. JR10

    Markers

    trigger a client event for the admin that will create the marker example: --server side addEventHandler('onPlayerJoin', root, function() --if isPlayerAdmin then check if the player admin your way triggerClientEvent(source, 'showMarker', source) --end end ) --client side addEvent('showMarker', true) addEventHandler('showMarker', root, function() createMarker(--arguments) end )
  11. I saw it before, it just say it all.
  12. No problem. and i answered you on skype.
  13. first in meta and in a client sided script use these functions and click on them for more info: engineImportTXD engineLoadCOL engineLoadDFF engineLoadTXD engineReplaceCOL engineReplaceModel engineRestoreCOL engineRestoreModel like this: if your file is blabla.txd and in a file called Files then in your meta should be: <file src='Files/blabla.txd' /> and in your script local txd = engineLoadTXD('Files/blabla.txd') engineImportTXD(txd, model) but add it to onClientResourceStart event why? because onClientResourceStart event is triggered when a player downloads the resource so the TXD file is downloaded then load and import the TXD Good luck.
  14. guiSetFont?? https://wiki.multitheftauto.com/wiki/GuiSetFont and here is the fonts you can use: https://wiki.multitheftauto.com/wiki/GUI_Fonts
  15. Your code addEventHandler ( "onClientResourceStart", getRootElement(), clientsideResourceStart )] You see that "]" at the end? that's the problem lol. his code addEventHandler ( "onClientResourceStart", getRootElement(), clientsideResourceStart ) He removed it.
  16. Then tell him what did you fix.
  17. WHAT??? What happened when you used the wiki's code it worked right? And did you use my last code it should work.
  18. You create the 3 vehicles when a player enter a car why?? And its local so you can't use it in any other block.
  19. Post any errors or warnings. function show() for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( Player_Grid ) guiGridListSetItemText ( Player_Grid, row, column, getPlayerName ( player ), false, false ) end end Where did you use this function i don't see it in your code. Try this: Player_Window = guiCreateWindow(22,226,189,359,"Players List by Sparrow",false) Player_Grid = guiCreateGridList(16,57,156,288,false,Player_Window) column = guiGridListAddColumn(Player_Grid,"Player",0.2) guiGridListSetSelectionMode(Player_Grid,2) Hide_Button = guiCreateButton(38,23,116,26,"",false,Player_Window) addCommandHandler("players", function () guiSetVisible(Player_Window, true) showCursor(true, false) show() end, false) addEventHandler("onClientGUIClick", Hide_Button, function (button) if (button == "left") then guiSetVisible(Player_Window, false) showCursor(false) end end, false) showCursor(true) function show() for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( Player_Grid ) guiGridListSetItemText ( Player_Grid, row, column, getPlayerName ( player ), false, false ) end end function Show() local player = guiGridListGetItemText (Player_Grid, guiGridListGetSelectedItem (Player_Grid), 1) end
  20. I am not sure but i think you can in MTA 1.1.
  21. It's will be really useful, if there is a function that will makes the resource download for the client, and something in the meta to specify wether it will auto download or the scripter must use the function. it will be useful like if i got a file specified for police and only the police team will use it so no need for other players to download it.
×
×
  • Create New...