Jump to content

Walid

Members
  • Posts

    1,491
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Walid

  1. Walid

    DELETE THIS

    * fileDelete: the script file will be downloaded in the hard disk which mean you can steal the script while you downloading. * cache: the script will be downloaded directly in the RAM and not in the hard disk. Both methods the client have to download the files each time he connect. Compile scripts that's the best way.
  2. Use getElementModel() Example spawnPlayer (thePlayer, X , Y , Z , R ,getElementModel(thePlayer),0,0)
  3. Walid

    DELETE THIS

    Wrong.
  4. Try this for k,v in ipairs(getAccounts()) do local serial = getAccountSerial(v) local sameSerial = getPlayerSerial (source) if serial == sameSerial then outputChatBox("Only one account per serial!",source,255,0,0) return end end
  5. Walid

    Help-me pls?

    Explain your problem better , you can't destroy a string; vehicle it's an element -- server side addEvent("b2.deletarcarro", true) addEventHandler("b2.deletarcarro", getRootElement(), function(deletarcarro1) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then if deletarcarro1 then for i , v in pairs (getElementsByType("vehicle")) do if getElementModel (v) == getVehicleModelFromName (tostring (deletarcarro1)) then destroyElement(v) end end end end end )
  6. Thanks.
  7. Check this : SmoothMoveCamera
  8. What are you talking about , explain your problem better.
  9. Walid

    DELETE THIS

    use tables Example: local resources = {"name.lua","name.lua","name.lua","name.lua","etc..."} function protect () for i , v in ipairs (resources) do fileDelete(tostring(v[1])) end end
  10. Replace destroyElement() with engineRestoreModel() local state = false bindKey( 'F3', 'down', function( ) if state then engineRestoreModel (3458) outputChatBox( '#ffcc00[MSG]: #c0c0c0Road texture disabled!', 255,255,255,true ) state = false else txd = engineLoadTXD( 'vgncarshade1.txd', 3458 ) engineImportTXD( txd, 3458 ) state = true outputChatBox( '#ffcc00[MSG]: #c0c0c0Road texture enabled!', 255,255,255,true ) end end )
  11. Thx Guys hope it helps. 'C' fixed, thx .
  12. Enable special detection SD #20 <enablesd>20</enablesd>
  13. Thx guys.
  14. Thank you.
  15. Hello Guys it's me again, As the tittle says today i'm going to explain to you LUA Strings try to follow me till the end. Let's get started , String is a sequence of characters it can be initialized with three forms which includes: Characters between single 'quotes' : Example 'This is The First Text' Characters between double "quotes" : Example "This is The Second Text" Characters between double [[square brackets]] : Example [[This is The Third Text]] An other example for the above three forms are shown below. Text = {} Text[1] = 'MTA SA' -- Single quotes Text[2] = "The Greatest Game" -- Double quotes Text[3] = [[You Will Ever Play]] -- Double square brackets for i=1,#Text do outputChatBox(Text[i]) end --[[Result : MTA SA The Greatest Game You Will Ever Play]] Escape sequence characters are used in string to change the normal interpretation of character. for more information check the list below: Finding Reversing: Formatting strings: Character and byte: Last function: A character class is used to represent a set of characters. examples shown below. If you have any questions, please feel free to ask.
  16. np.
  17. you are welcome.
  18. Walid

    WTF its wrong

    ?? what are you trying to do
  19. it's not 5 seconds 500 = 0.5 seconds 5000 = 5 seconds Anyways yes you can.
  20. Now i'm pretty sure that it's not your code , atleast when you use a leacked resource , read it before u start asking for help.
  21. must be like this local x , y , z = getElementPosition(localPlayer) playRadioThing = playSound3D(radio, x , y , z, true) setSoundMaxDistance(playRadioThing, 70 )
  22. yes i know , have a nice day
  23. Also , Wrong answer he is asking about how he can remove the word. simply he can use string.gsub string.gsub(Text,"the Word you want to remove"," ") -- Empty replaceString Example : Text = "You gave him a wrong answer" NewText = string.gsub(Text,"wrong","") -- Result : You gave him a answer
  24. :3 i think you need to read the question because as i can see he is asking about "How he can check if a text have upper or lowercase letters?"
  25. Use string.gsub()
×
×
  • Create New...