Jump to content

SheriFF

Members
  • Posts

    90
  • Joined

  • Last visited

Everything posted by SheriFF

  1. SheriFF

    ACL BUG

    function showPanel(thePlayer) triggerClientEvent(thePlayer, "opencho", getRootElement()) end function onResStart() for i, player in pairs( getElementsByType( "player" ) ) do local accountname = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("CHOQUE")) then bindKey(player, "F4", "down", showPanel) end end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResStart) function player_onLogin( _, accountname ) if isObjectInACLGroup("user." .. accountname, aclGetGroup("CHOQUE")) then bindKey(source, "F4", "down", showPanel) end end addEventHandler("onPlayerLogin", getRootElement(), player_onLogin ) function cleanAll(player) for index, player in pairs(getElementsByType("player")) do unbindKey(player, "F4", "down", showPanel) end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), cleanAll) Any errors in debug?
  2. I don't really know how the shaders work so i can't give further help
  3. I think there's a walking style where the ped holds his hands in front just like he carryes a box( not sure tho if it's a walking style or bone attach ). I think you should try this function with every walking style : setPedWalkingStyle
  4. Shadows are created using the shadow mesh which can be found in the .col file but i think not the shadows are the problem here.I don't know, just try to set the element double sided
  5. Sick idea tho. I agree with this suggestion
  6. i think it worked so thanks alot
  7. I think is a bug because, when i set interior to 0, all the models are deleted but, when i set the interior to i.e 1 only the objects in interior 1 are deleted.Please, i need help! Second, the script doesn't remove these bushes
  8. I managed to fix the problem by myself. Here is the new code lods = { [ 12855 ] = 13250, [ 3443 ] = 3548 } function map_load() --irelevant code removed setTimer( LODs_load, 4000, 1 )--this is the thing that made this script work ( setting the function to start 4s after the map load ) end addEventHandler( "onResourceStart", getRootElement(), map_load ) function LODs_load() for index, value in pairs ( getElementsByType( "object" ) ) do if ( lods[ getElementModel( value ) ] ) then local x, y, z = getElementPosition( value ) local rX, rY, rZ = getElementRotation( value ) result = setLowLODElement( value, createObject( lods[ getElementModel( value ) ], x, y, z , rX, rY, rZ, true ) ) outputDebugString( tostring( result ) ) end end end
  9. bump. Please, i need help
  10. I fixed that dumb mistake that part of the code just creates the water elements
  11. that was a stupid mistake but not the one that causes this problem
  12. Hello! I tried to assign a lod to an object ( both the model and the lod are custom models ) . My problem is that when the object appears the lod doesn't dissapear as it should /debugscript 3 : empty Code ( Server sided ) lods = { [ 12855 ] = 13250 --[ object id ] = corresponding lod id } function map_load() --irelevant code removed LODs_load() end addEventHandler( "onResourceStart", getRootElement(), map_load ) function LODs_load() for index, value in pairs ( getElementsByType( "object" ) ) do for i, v in pairs ( lods ) do if ( lods[ getElementModel( value ) ] ) then local x, y, z = getElementPosition( value ) local rX, rY, rZ = getElementRotation( value ) setLowLODElement( value, createObject( lods[ getElementModel( value ) ], x, y, z , rX, rY, rZ, true ) ) end end end end lod model still there:
  13. Hello! I am working at my own custom map and in order to do this i need to delete the default GTA SA map. For an unknown reason this little script( server side ) : for i=550,20000 do removeWorldModel(i,10000,0,0,0,0) --Here the interior is set to 0 end deletes the interiors too and i don't want that to happen.
  14. Replace if getAccountData(acc, "FirstLoginKek", false) then with if getAccountData(acc, "FirstLoginKek") == false then
  15. Hello! I am developing my own server and i need some help with the custom vehicles textures. My server is based on Romania and i need someone to help me replace the emergency vehicles textures with the romanian ones. If it's a complicated thing and is needed i can pay More details : galea.stefan ( skype )
  16. Intră aici și crează un topic nou ( în engleză ) care să conțină toate informațiile despre eroare precum și componentele PC-ului tău.În scurt timp ar trebui să-ți răspundă un membru din staff-ul mta-ului care te va ajuta mult mai bine decât oricine de aici
  17. Hello, i am searching for a water creator plugin/edf for map editor( i want to create water elements in map editor, not scripting them because it saves alot of time )
  18. Lucrez la un server de rp ( al meu ) cu totul făcut de la 0
  19. Pai nu pot edita post-ul, nu mai zice nimeni nimic si vin cu update-uri, n-am ce sa fac. Cred ca e si permisa chestia asta https://forum.multitheftauto.com/topic/92117-show-project-san-francisco-map/ Oricum, mersi ca mi-ai 'spart' combo-ul
×
×
  • Create New...