Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Auto's Slepen

Hey,

Ik heb een RP server en ik wil een tow-truck server toevoegen.

Maar als ik een auto wil slepen lukt dat niet zoals dat in Singleplayer gaat.

Moet ik hiervoor een FS hebben or iets anders?

En ik heb al gezocht op forum van sa-mp maar kon niet vinden.

Kunnen jullie me a.u.b. helpen

Alvast Bedankt :tu:,

Woozie

Featured Replies

Plaats gewoon een voertuig met het ID 525 waar je hem wilt hebben, deze kan andere voertuigen slepen. Als dat niet lukt, is het helaas ook niet mogelijk. Tenzij je een buggie script gaat maken, maar dat raad ik je af.

Eventueel kan je de packer gebruiken om voertuigen op te zetten. ID 443.

Plaats gewoon een voertuig met het ID 525 waar je hem wilt hebben, deze kan andere voertuigen slepen. Als dat niet lukt, is het helaas ook niet mogelijk. Tenzij je een buggie script gaat maken, maar dat raad ik je af.

Eventueel kan je de packer gebruiken om voertuigen op te zetten. ID 443.

dit raad ik jouw af :puh:

zoek gewoon @ forum.sa-mp.com daar staat vast wel iets tussen!

http://forum.sa-mp.com/index.php?topic=26277.0

Misschien kan je die downloaden?

EDIT:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_ACTION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
    {
    if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525)
        {
        new Float:pX,Float:pY,Float:pZ;
		GetPlayerPos(playerid,pX,pY,pZ);
		new Float:vX,Float:vY,Float:vZ;
		new Found=0;
		new vid=0;
		while((vid<MAX_VEHICLES)&&(!Found))
  				{
  				vid++;
  				GetVehiclePos(vid,vX,vY,vZ);
  				if  ((floatabs(pX-vX)<5.0)&&(floatabs(pY-vY)<7.0)&&(floatabs(pZ-vZ)<7.0)&&(vid!=GetPlayerVehicleID(playerid)))
  				    {
  				    Found=1;
  				    if	(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
  				        {
  				        DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
  				        }
  				    AttachTrailerToVehicle(vid,GetPlayerVehicleID(playerid));
  				    SendClientMessage(playerid,0xFFFF00AA,"Car towed!");
  				    }
      			}
			    }
	    }
    }

Is dat het niet?

Edited by jorD1

  • Author

Remi ik bedoelde ook slepen met een Towtruck (525).

Maar dat lukt niet, dus ik dacht dat ik er een FS ofzo voor nodig had.

EDIT: Ik nu een juist script om een auto te slepen. Geen bugs gevonden.

:tu:

Edited by Wu-Zi-Mu

ik nu blij jij goed script hebben gevonden xD

je EDIT: zin :puh:

Mag ik dat script ook?

  • Author
Mag ik dat script ook?

Klik

Dit is niet degene die ik heb maar ja...

Edited by Wu-Zi-Mu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.