Jump to content

Morelli

Members
  • Posts

    69
  • Joined

  • Last visited

Details

  • Location
    Sydney, Australia

Morelli's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. You're also forgetting to place a "then" at the end of line 6.
  2. Clientside toggleControl ( "radar", false ) Serverside toggleControl ( sourcePlayer, "radar", false ) Turns off the F11 radar. Use showPlayerHudComponent to show/hide the radar in the bottom left corner.
  3. That's an issue within the script that is being hosted on the server. It's up to the scripters to fix it, so you're best raising the issue with them.
  4. Try opening GTA San Andreas (Single Player) and adjusting the mouse settings there, before going back into MTA. Sometimes it can be caused randomly by using windows mode on a server, hence why it is recommended by the devs that you do not play in windowed mode. Windowed mode was put in for scripters who need to ALT+Tab very frequently
  5. function inicio (res) local result = mysql_query(link, "SELECT * FROM torneo_clanes") --get a list of team names if ( result ) then for result,row in mysql_rows(result) do local clanname = row["clan"] createTeam( clanname ) end else outputDebugString("mysql_query failed: (" .. mysql_errno(mysqlconnecttoserver) .. ") " .. mysql_error(mysqlconnecttoserver)) end mysql_free_result(result) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), inicio) Should work in theory.
  6. Read Ace_Gambit's post on the top of page 3 of the below thread. viewtopic.php?f=91&t=22800&st=0&sk=t&sd=a&hilit=teleport&start=30
  7. Heh, forgot all about setElementData. Nevermind then.
  8. I'm looking for a way to retrieve the model of a pickup. The pickup I've created is a custom model, using the Lua code: local pickup_whatever = createPickup ( 0, 0, 0, 3, 1272, 30000) The model ID that I have used is 1272 (Blue house). I've tried getPickupAmmo and getPickupAmount but they both return zero. Any suggestions on how I can retrieve the model?
  9. They seem to be lacking examples and thorough documentation in the wiki. How am I able to set a script (resource)'s right to specific functions (ie: ban), through scripting functions?
  10. Take a look at the MTA Wiki, in particular to GUI functions. (Specifically looking at Text Label functions) On the contrare, you may wish to keep it serverside, in that case, I recommend you take a look at TextCreateDisplay. Asking for some scripting help is one thing. Asking for pretty much a whole gamemode to be scripted to your personal preference is just nonsense. You'll feel a lot better once you've scripted something for yourself. To recap, look at these links: Serverside: TextCreateDisplay Clientside: GUISetText Obviously, those functions need to be used in conjunction with other functions to properly work. These are all detailed and listed in both the examples and the "See Also" links.
  11. I've seen this be influenced by a driveby vehicle script. Are you playing in a server which allows driveby with unconventional vehicles (ie: other than a sub-machine gun)?
  12. I've seen this be influenced by a driveby vehicle script. Are you playing in a server which allows driveby with unconventional vehicles (ie: other than a sub-machine gun)?
  13. local cab1 = ( createVehicle, 514, -476, -489, 25 ) local trailer1 = ( createVehicle, 584, -480, -482, 25 ) Replace the above with: local cab1 = createVehicle ( 514, -476, -489, 25 ) local trailer1 = createVehicle ( 584, -480, -482, 25 )
  14. local cab1 = ( createVehicle, 514, -476, -489, 25 ) local trailer1 = ( createVehicle, 584, -480, -482, 25 ) Replace the above with: local cab1 = createVehicle ( 514, -476, -489, 25 ) local trailer1 = createVehicle ( 584, -480, -482, 25 )
  15. Just follow the path instructions, it seems more than likely that there was a typo in the versions that can be downgraded. As you can see on the bolded line, it says versions 1.00, but it's downgrading to 1.00, so it most likely was meant to read 2.00. So once again, just follow whatever instructions are on that thread or included with the patch.
×
×
  • Create New...