Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. Looks like it, try reordering so that the engineLoadTXD followed by engineImportTXD is executed first.
  2. The paths basically translate to map/carparkcarpark.dff and the same for .col and .txd. Remove the "/carpark" from the modelNames table. Also, there's no function called engineReplaceTXD, it's engineImportTXD. You should first import the txd, then replace the model.
  3. JR10

    Flag changer

    Make a command that changes the country to whatever you want. addCommandHandler('country', function(player, _, country) if (not country) then return end setElementData(player, 'Country', country) end)
  4. You can export all the database to a file that can be imported again on the new external database.
  5. This might be it: engineSetModelLODDistance
  6. JR10

    MTASA map editor

    The game-mode for the map editor is called 'editor', you can simply start it.
  7. JR10

    Little problem

    Everything looks fine, your meta.xml is correct, you've added the event client-side. Double check everything again, make sure that the error still outputs.
  8. JR10

    Help me

    setVehicleWheelStates
  9. Why set the account's element data? Why not the player, so you can use scoreboard?
  10. Do not remove/edit your topic after getting help, this is being selfish. Leave it so anyone who has a similar problem can find help.
  11. You can use any FTP client to upload the files. https://wiki.multitheftauto.com/wiki/In ... _GNU_Linux
  12. This won't work the bindKey though. The best way to do this would be to make the check on the server, trigger an event to just bind and add the handlers, basically the Superman.Start function.
  13. JR10

    weapon alpha

    setElementAlpha only works with real elements, like custom weapons. If you want the ped weapons to be invisible you'll have to use shaders.
  14. Why are you using getRootElement? setVehicleAdjustableProperty's only parameter is the vehicle element.
  15. addEventHandler('onResourceStart', resourceRoot, function() local account = 'ACCOUNT_NAME' if (not getAccount(account)) then return end aclGroupAddObject(aclGetGroup('Admin'), 'user.'..account) aclSave() aclReload() end)
  16. Perhaps a slight delay might fix it: setTimer(setElementModel, 500, 1, source,14)
  17. The element is the source, not a parameter. The first parameter is the old model. function admskin(old) if (getElementType(source) ~= 'player') then return end local account = getPlayerAccount(source) local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if ( getElementModel ( source ) == 188 ) then outputChatBox("Skin de admin correcto.",source,0,255,0) else outputChatBox("ADMIN SIN SKIN.",source,255,0,0) end else if ( getElementModel ( source ) == 188 ) then outputChatBox("No puedes usar skin de ADMIN.",source,255,0,0) setElementModel(source,14) end end end addEventHandler("onElementModelChange",root,admskin)
  18. JR10

    Little problem

    Post your meta.xml file.
  19. JR10

    Little problem

    Seems fine. Are you sure the script is set as client-side in the meta.xml file?
  20. Muzik is local to the handling function, so it doesn't exist for the rest of the code. local Muzik addEventHandler("onClientResourceStart", resourceRoot, function() Muzik = playSound(tostring( createMP3Music ), true) end )
  21. The superman resource doesn't feature restricting access using ACL. You'll have to edit the code yourself.
  22. Where is 'Muzik' defined?
  23. JR10

    Little problem

    Again, there is no onPlayerTimeSaverStart in any of the scripts. Why isn't the panel working exactly? Any errors in /debugscript 3?
×
×
  • Create New...