Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. For using executeSQLQuery, the working database is the one stored as registry.db. If you want to use your own DB, you gotta use dbExec
  2. Renkon

    setTimer

    For some reason, setTimer fails sometimes, at least in my case when using eventHandler, evenmore when having arguments. Try this: setTimer(function() removeEventHandler("onPlaySound") end, 60000, 1)
  3. It's fine. It's just that you probably added it client-side
  4. Yeah, learn so you become scriptor!!! Hey. You should setTeamColor to blue probably, and setAccountData or store somewhere the team name. Related to on and off Duty, you can use a commandHandler with ElementData. Related to OffDuty you will have to create another white group for offduty players.
  5. Firsto f all, you are mixing client and server-side functions. Secondly: thePlayer is NOT defined. And Source, in onResourceStart is the resourcename. My recommendation is that I'd rather you used resourceRoot than getRootElement.
  6. Revisa que estas cargando archivos DFF's y luego los Importas a TXD. En consecuencia no te funcionará. army = engineLoadTXD ( "skins/army.txd" ) engineImportTXD ( army, 287 ) army = engineLoadDFF ( "skins/army.dff" ) engineImportTXD ( army, 287 ) Mira las lineas dos y cuatro. Se sobrecargan y bueno...
  7. Renkon

    Libereria

    sí viewtopic.php?f=108&t=49179
  8. Thank you for your piece of advice.
  9. Is this okay? local vehicleList = { [1] = { name = "Blahblah", price = 133337, [...]}, [2] {blahblah}, [...] }
  10. I can fix that script, if it's the one I think
  11. You should ONLY traduce things between "..."
  12. function addArrayIntoArray(big, small) if not big or not small then return false big[small] = small return big end table = addArrayIntoArray(table,small) Try that. At a glimpse, I believe it didnt work because of changing values that wouldn't me modified out-side the funcion.
  13. You mean something like this? function addArrayIntoArray(big, small) if not big or not small then return false big[small] = small return true end -- somewhere else addArrayIntoArray(superArray, littleArray)
  14. tempArray = { [386] = "test" } ?
  15. ship = createMarker( 2102.4775390625, -2956.5537109375, 16.2890625, "cylinder", 2, 0, 255, 0, 200 ) local vehicles = {} function spawnVeh4(id) local x, y, z = getElementPosition(source) local rx, ry, rz = getElementRotation(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(id, 2112.7265625,-2939.427734375,18,0,0,90) setVehicleColor(vehicles[source], 0, 255, 0) end addEvent("CreVehice3",true) addEventHandler("CreVehice3", root, spawnVeh4) addEventHandler("onPlayerQuit", root, function () if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end) function showGUI3(hitPlayer) local name = getTeamName(getPlayerTeam(hitPlayer)) if (not isPedInVehicle(hitPlayer)) then if ( name == "Military" ) or ( name == "Staff" ) then triggerClientEvent (hitPlayer,"showGUI3",getRootElement(),hitPlayer) end end end addEventHandler("onMarkerHit",ship,showGUI3)
  16. Why do people say SCRIPTORS nowadays! . It is SCRIPTERS Good luck with your server, anyways.
  17. http://mta.dzek.eu/compiler/
  18. Renkon

    Data Return ?

    Editing data clientside won't be fine, obviously.
  19. Try using NETZIP Library. It works greatly.
  20. Understood. I will take that into consideration. Thank you Sebbe. (anyways I would change that depending on what client wants)
  21. Well yeah, it's a good point. But I wasn't the video-editor and couldn't do anything... Anyways ofc I can show it on my private serv.
  22. Don't you have to Load DFF too?
  23. I am selling that login panel. Contact me on PM for further info.
  24. triggerClientEvent("setGUI", source, theAccountName) replace w / triggerClientEvent(source, "setGUI", source, theAccountName)
×
×
  • Create New...