Jump to content

tosfera

Members
  • Posts

    1,193
  • Joined

  • Last visited

Everything posted by tosfera

  1. tosfera

    help me pls

    You might've placed the 'end' on the wrong place then.
  2. You know mint3d, all you did till now was coming here and requesting stuff. Don't want to be rude but maybe you should start learning LUA and finally create a script yourself. After you made it and you get errors, first google. If that doesn't work, then post.
  3. setCameraMatrix setTimer fadeCamera onClientRender lua table / array foreach
  4. Bumping this, still looking for the 'high_sensitivity_mode' thing for my cursor. :3
  5. Old GUI editbox, but the new theme has been aplied too. #weird
  6. If you think you can do it yourself, go ahead. You'll learn alot from it; guiCreateWindow guiCreateButton guiCreateEdit guiCreateLabel guiSetVisible guiGetScreenSize oh and don't forget the script behind it; triggerClientEvent triggerServerEvent guiGetText guiSetVisible logIn
  7. tosfera

    Drop Camera

    ahh I see, I failed my script die-hard. The source of the event is the player that died so my 'thePlayer' is messed up. Let me try and run it in my server. edit; works for me.
  8. tosfera

    Drop Camera

    One little script, that makes your day ( I hope ); addEventHandler ( "onClientPlayerWasted", root, function ( thePlayer ) if ( isPedInVehicle ( thePlayer ) ) then removePedFromVehicle ( thePlayer ); end local x, y, z, lookx, looky, lookz = getCameraMatrix(); setCameraMatrix ( x, y, z, lookx, looky, lookz ); end );
  9. tosfera

    Drop Camera

    why don't you just check if the ped is in a vehicle, if so. Remove the ped from the vehicle, then get its coords and after that, you'll set the matrix.
  10. tosfera

    route

    Create an table filled with positions for data, then add an eventHandler that uses 'onMarkerHit', get the source ( which marker has been hit ) of the function and check its position in the table. Then select the next entry out of your table and use 'createMarker' to create the next marker. after you created the next marker, give the player some cash.
  11. tosfera

    Vgncarshade

    You can find a sample script on the wiki right here
  12. it does work with the E. What is this bind doing with the cursor in the editor? O_O edit1; high_sensitivity_mode, I see. time to find out how to enable this by default
  13. isPlayerInFaction returns a value, if you would play 'not' infront of the exports.factions: it would automaticly see that as a flipped value ( true to false, false to true. ) if ( ( seat == 0 ) and ( id == 596 ) and not ( exports.factions:isPlayerInFaction ( player, 1 ) ) then
  14. tosfera

    Vgncarshade

    You're requesting scripts right now, there is another section for those people. This section is where we help people with errors.
  15. Where did you define 'theVehicle'. Nowhere, the source of the event is the vehicle. Change 'theVehicle' to 'source' and it will work.
  16. Goodluck, all you have to do is check if the players team matches with the one that you asked for.
  17. I can, but you would not learn alot from it. There are some nice saving systems on the community, maybe you could learn something from them.
  18. That's the point, when you spawned these books ( obj 2813 for example ) you can't click on it to select it. That's why the game doesn't return an valid object either. Only way to remove these books would be CTRL+Z or the 'all elements' tab. :\
  19. Why the hell would you set the data to the resource if it's about a playerbased system?._.'
  20. The fact that I'm learning lua and still not very well get a hold of triggerClientEvent or triggerServerEvent (addEvent etc.) By the way, I touched on this topic due to the fact that you had to get an account(getPlayerAccount(Server-only function)), but the script is written in a client-side. Sorry for bad English skills. you can get the account server sided and trigger it, it wouldn't be that hard to do. It only takes a few minutes before you will understand it fully, since you should also set the elementdata server sided, cause else it wont be synced with the other players. So ya, you should use some triggers.
  21. CIT is using a MySQL or sqlite not sure which. To keep data save and secure Arran wrote an own account-system. There for, you do need quite a few months of experience in lua and knowledge in other languages for ideas how to get it working etc. For a starter, I would recommend doing; setAccountData ( getPlayerAccount ( thePlayer / source ), "ParamedicLevel", 2 )
  22. setElementData will be kept as long as the element is not destroyed. So, when someone reconnects the player's ped will be deleted, just like his elementData. If you're using accountData, you'll be using the built-in account system from MTA. Which allows users to login and get their data back. If you want to save weapons for reconnects etc, use setAccountData and getAccountData.
  23. tosfera

    onMarkerHit

    That's a possible way to do it, but you can also see if the source ( onMarkerHit's source = the marker that has been hitted ) equals the marker you want. Or you can add 2 event handlers both having different rootElements; addEventHandler ( "onMarkerHit", , );
  24. Root is defined as getRootElement(), if you're using root you've to check is source ( theMaker ) is the marker you wanted. Changing root to the name of your marker allows you to skip the if-statement to see if it is your marker.
×
×
  • Create New...